Documentation
¶
Index ¶
- func CapitalizeFirstLetter(s string) string
- func GetCurrentDir() string
- func GetExecutableDir() string
- func GetExecutablePath() string
- func RandomStringPure(length int) (result string)
- func ToCamelCase(s string) string
- func ToExportedName(s string) string
- func ToKebabCase(s string) string
- func ToSmallCamelCase(s string) string
- func ToSnakeCase(s string) string
- func UnescapeUnicode(b []byte) string
- func UnescapeUnicodeInYamlDoc(b []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapitalizeFirstLetter ¶ added in v0.5.18
CapitalizeFirstLetter make first letter of a string to upper-case.
func GetCurrentDir ¶ added in v0.5.9
func GetCurrentDir() string
GetCurrentDir returns the current workingFlag directory
func GetExecutableDir ¶ added in v0.5.9
func GetExecutableDir() string
GetExecutableDir returns the executable file directory
func GetExecutablePath ¶ added in v0.5.9
func GetExecutablePath() string
GetExecutablePath returns the executable file path
func RandomStringPure ¶
RandomStringPure generate a random string with length specified.
func ToCamelCase ¶ added in v0.5.18
func ToExportedName ¶ added in v0.5.18
ToExportedName converts any name to Golang Exported Name.
Basically, it is a kebab/snake-case to Camel-case transformer.
func ToKebabCase ¶ added in v0.5.18
func ToSmallCamelCase ¶ added in v0.5.18
func ToSnakeCase ¶ added in v0.5.18
func UnescapeUnicode ¶ added in v0.7.8
UnescapeUnicode decodes \uxxxx as unicode string.
func UnescapeUnicodeInYamlDoc ¶ added in v0.7.8
UnescapeUnicodeInYamlDoc decodes \uxxxx as unicode string.
It assumes the input doc is well-formatted yaml.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.