Documentation ¶
Overview ¶
message from the author:
+--------------------------------------------------------------+ | * * * ░░░░░░░░░░░░░░░░░░░░ Hello ░░░░░░░░░░░░░░░░░░░░░░░░░░| +--------------------------------------------------------------+ | | | ++ ______________________________________ | | ++++ / \ | | ++++ | | | | ++++++++++ | Feel free to contribute to this | | | +++ | | project or contact me on | | | ++ | | manfred.life if you like this | | | + -== ==| | project! | | | ( <*> <*> | | | | | | /| :) | | | | _) / | | | | | +++ / \______________________________________/ | | \ =+ / | | \ + | | |\++++++ | | | ++++ ||// | | ___| |___ _||/__ __| | / --- \ \| ||| __ _ ___ __ __/ /| |/ | | \ \ / / ' \/ _ \/ // / / | || | | | | | /_/_/_/\___/\_,_/_/ | +--------------------------------------------------------------+
Example ¶
package main import ( "fmt" "moul.io/converter" ) func main() { ret, _ := converter.Chain("hello world", []string{"rev", "upper"}) fmt.Println(ret) }
Output: DLROW OLLEH
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Converters = map[string]interface{}{
"base32": base32Encode,
"base32-decode": base32Decode,
"base58": base58Encode,
"base58-decode": base58Decode,
"base64": base64Encode,
"base64-decode": base64Decode,
"hex": hexEncode,
"hex-decode": hexDecode,
"hexbase32": hexbase32Encode,
"hexbase32-decode": hexbase32Decode,
"lower": lower,
"md5": md5Sum,
"rawurlbase64": rawurlbase64Encode,
"rawurlbase64-decode": rawurlbase64Decode,
"rev": rev,
"sha1": sha1Sum,
"title": title,
"upper": upper,
"urlbase64": urlbase64Encode,
"urlbase64-decode": urlbase64Decode,
"json": jsonMarshal,
"toml": tomlEncode,
"json-decode": jsonDecode,
"csv-decode": csvDecode,
"xml": xmlEncode,
"xml-decode": xmlDecode,
"_parse-string": parseString,
"_bytes-to-string": bytesToString,
"_string-to-bytes": stringToBytes,
"_int64-to-string": int64ToString,
"_string-to-int64": stringToInt64,
"_string-to-float64": stringToFloat64,
"_float64-to-string": float64ToString,
}
Converters is a map containing converters that can be called using a name.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.