processors

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(data string) string

Base64Decode decode string from base64 to plain text.

func Base64Encode

func Base64Encode(data string) string

Base64Encode encode string to base64.

func CountLines

func CountLines(input string) string

CountLines count number of words in string. Example: "line 1\n line 2" = 2

func CountNumberCharacters

func CountNumberCharacters(input string) string

CountNumberCharacters count number of Characters including spaces.

func CountWords

func CountWords(input string) string

CountWords count number of words in string. Example: "hello world" = 2

func FormatJSON

func FormatJSON(input string) string

FormatJSON format given string to a JSON with Indent.

func HexToRGB

func HexToRGB(input string) string

HexToRGB convert hex color code to R, G, B codes here we are using input library helper.

func HexToString added in v0.1.3

func HexToString(input string) string

HexToString convert hex color code to R, G, B codes here we are using input library helper.

func JSONToYAML

func JSONToYAML(input string) string

JSONToYAML convert JSON to YAML string.

func MD5Encode

func MD5Encode(data string) string

MD5Encode encode string to md5.

func ROT13Encode

func ROT13Encode(input string) string

ROT13Encode convert string to ROT13 encoding.

func SHA1Encode

func SHA1Encode(data string) string

SHA1Encode encode string to sha1.

func SHA256Encode

func SHA256Encode(data string) string

SHA256Encode encode string to sha256.

func SHA512Encode

func SHA512Encode(data string) string

SHA512Encode encode string to sha256.

func SortLines

func SortLines(input string) string

SortLines sort given list, it's not a natural sort.

func StringReverse

func StringReverse(input string) (result string)

StringReverse revers a given string Example: "test" to "tset"

func StringToCamel

func StringToCamel(input string) string

StringToCamel convert sting to CamelCase. Example: "this is string" to "ThisIsString".

func StringToHex added in v0.1.3

func StringToHex(input string) string

StringToHex convert hex color code to R, G, B codes here we are using input library helper.

func StringToKebab

func StringToKebab(input string) string

StringToKebab convert sting to kebab-case. Example: "this is string" to "this-is-string".

func StringToLower

func StringToLower(input string) string

StringToLower convert sting to lower case. Example: "THIS IS STRING" to "this is string".

func StringToSlug

func StringToSlug(input string) string

StringToSlug convert sting to StringToSlug. It's similar to Kebab case but URL Friendly. Example: "this is string" to "this-is-string".

func StringToSnakeCase

func StringToSnakeCase(input string) string

StringToSnakeCase convert sting to snake_case. Example: "this is string" to "this_is_string".

func StringToTitle

func StringToTitle(input string) string

StringToTitle convert sting to title case. Example: "this is string" to "This is String".

func StringToUpper

func StringToUpper(input string) string

StringToUpper convert sting to lower case. Example: "this is string" to "THIS IS STRING".

func URLDecode

func URLDecode(input string) string

URLDecode decode url string

func URLEncode

func URLEncode(input string) string

URLEncode encode url string

func YAMLToJSON

func YAMLToJSON(input string) string

YAMLToJSON convert YAML to JSON string with formatted output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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