Documentation ¶
Overview ¶
Package configflag converts strings to snake_case or CamelCase
Index ¶
- func Bind(conf interface{}, prefix string) error
- func ToDelimited(s string, del uint8) string
- func ToKebab(s string) string
- func ToScreamingDelimited(s string, del uint8, screaming bool) string
- func ToScreamingKebab(s string) string
- func ToScreamingSnake(s string) string
- func ToSnake(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToDelimited ¶
ToDelimited converts a string to delimited.snake.case (in this case `del = '.'`)
func ToScreamingDelimited ¶
ToScreamingDelimited converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this case `del = '.'; screaming = false`)
func ToScreamingKebab ¶
ToScreamingKebab converts a string to SCREAMING-KEBAB-CASE
func ToScreamingSnake ¶
ToScreamingSnake converts a string to SCREAMING_SNAKE_CASE
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.