Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCamel ¶
Example ¶
package main
import (
"fmt"
"github.com/ddkwork/golibrary/std/stream/caseconv"
)
func main() {
fmt.Println(caseconv.ToCamel("Test String v2"))
}
Output: testStringV2
Example (From_snake_case) ¶
package main
import (
"fmt"
"github.com/ddkwork/golibrary/std/stream/caseconv"
)
func main() {
fmt.Println(caseconv.ToCamel("test_string_v2"))
}
Output: testStringV2
Example (From_upper_case) ¶
package main
import (
"fmt"
"github.com/ddkwork/golibrary/std/stream/caseconv"
)
func main() {
fmt.Println(caseconv.ToCamel("TEST STRING V2"))
}
Output: testStringV2
func ToKebab ¶
Example ¶
package main
import (
"fmt"
"github.com/ddkwork/golibrary/std/stream/caseconv"
)
func main() {
fmt.Println(caseconv.ToKebab("Test String v2"))
}
Output: test-string-v2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.