package
1.0.2
Repository: https://github.com/erlangs/okoo.git
Documentation: pkg.go.dev

# Functions

DictToJSON sanitizes a python dict string representation to valid JSON.
GetDefaultString returns str if it is not an empty string or def otherwise.
HumanSize returns the given size (in bytes) in a human readable format.
IsIn returns true if the given str is the same as one of the strings given in lst.
MakeUnique returns an unique string in reference of the given pool its made of the base string plus a number if it exists within the pool.
MarshalToJSONString marshals the given data to its JSON representation and returns it as a string.
SnakeCase convert the given string to snake case following the Golang format: acronyms are converted to lower-case and preceded by an underscore.
StartsAndEndsWith returns true if the given string starts with prefix and ends with suffix.
Substitute substitutes each occurrence of each key of mapping in str by the corresponding mapping value and returns the substituted string.
Title convert the given camelCase string to a title string.
TrimArgs returns a slice of string containing every given arg converted to printed string and trimmed down to a length of 30.