Documentation
¶
Overview ¶
Package gocase is a package to convert normal CamelCase to Golang's CamelCase and vice versa. Golang's CamelCase means a string that takes into account to Go's common initialisms. For more details, see `golang.org/x/lint/golint`.
Example ¶
package main
import (
"fmt"
"github.com/takuoki/gocase"
)
func main() {
fmt.Println(gocase.To("IpAddress"))
fmt.Println(gocase.Revert("defaultDNSServer"))
}
Output: IPAddress defaultDnsServer
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.