Documentation
¶
Index ¶
- func Base64Decode(data string) string
- func Base64Encode(data string) string
- func CountLines(input string) string
- func CountNumberCharacters(input string) string
- func CountWords(input string) string
- func FormatJSON(input string) string
- func HexToRGB(input string) string
- func JSONToYAML(input string) string
- func MD5Encode(data string) string
- func ROT13Encode(input string) string
- func SHA1Encode(data string) string
- func SHA256Encode(data string) string
- func SHA512Encode(data string) string
- func SortLines(input string) string
- func StringReverse(input string) (result string)
- func StringToCamel(input string) string
- func StringToKebab(input string) string
- func StringToLower(input string) string
- func StringToSlug(input string) string
- func StringToSnakeCase(input string) string
- func StringToTitle(input string) string
- func StringToUpper(input string) string
- func URLDecode(input string) string
- func URLEncode(input string) string
- func YAMLToJSON(input string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
Base64Decode decode string from base64 to plain text.
func CountLines ¶
CountLines count number of words in string. Example: "line 1\n line 2" = 2
func CountNumberCharacters ¶
CountNumberCharacters count number of Characters including spaces.
func CountWords ¶
CountWords count number of words in string. Example: "hello world" = 2
func FormatJSON ¶
FormatJSON format given string to a JSON with Indent.
func HexToRGB ¶
HexToRGB convert hex color code to R, G, B codes here we are using input library helper.
func ROT13Encode ¶
ROT13Encode convert string to ROT13 encoding.
func StringReverse ¶
StringReverse revers a given string Example: "test" to "tset"
func StringToCamel ¶
StringToCamel convert sting to CamelCase. Example: "this is string" to "ThisIsString".
func StringToKebab ¶
StringToKebab convert sting to kebab-case. Example: "this is string" to "this-is-string".
func StringToLower ¶
StringToLower convert sting to lower case. Example: "THIS IS STRING" to "this is string".
func StringToSlug ¶
StringToSlug convert sting to StringToSlug. It's similar to Kebab case but URL Friendly. Example: "this is string" to "this-is-string".
func StringToSnakeCase ¶
StringToSnakeCase convert sting to snake_case. Example: "this is string" to "this_is_string".
func StringToTitle ¶
StringToTitle convert sting to title case. Example: "this is string" to "This is String".
func StringToUpper ¶
StringToUpper convert sting to lower case. Example: "this is string" to "THIS IS STRING".
func YAMLToJSON ¶
YAMLToJSON convert YAML to JSON string with formatted output.
Types ¶
This section is empty.