stringtool

package
v0.8.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeFirstLetter added in v0.5.18

func CapitalizeFirstLetter(s string) string

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

func RandomStringPure(length int) (result string)

RandomStringPure generate a random string with length specified.

func ToCamelCase added in v0.5.18

func ToCamelCase(s string) string

func ToExportedName added in v0.5.18

func ToExportedName(s string) string

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 ToKebabCase(s string) string

func ToSmallCamelCase added in v0.5.18

func ToSmallCamelCase(s string) string

func ToSnakeCase added in v0.5.18

func ToSnakeCase(s string) string

func UnescapeUnicode added in v0.7.8

func UnescapeUnicode(b []byte) string

UnescapeUnicode decodes \uxxxx as unicode string.

func UnescapeUnicodeInYamlDoc added in v0.7.8

func UnescapeUnicodeInYamlDoc(b []byte) string

UnescapeUnicodeInYamlDoc decodes \uxxxx as unicode string.

It assumes the input doc is well-formatted yaml.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL