Documentation ¶
Index ¶
- func Aes128Decrypt(key, cipherString, encodedSrc string, decode textToBinary) (string, error)
- func Aes128Encrypt(key, cipherString, src string, encode binaryToText) (string, error)
- func CheckIPInRange(ip string, start net.IP, end net.IP) bool
- func GetLastSplit(src, separator string) string
- func IsBase32Encoded(data string) bool
- func IsIP(ip string) bool
- func JSONMapToString(jsonMap map[string]interface{}) []byte
- func JSONStringToList(jsonString string) []interface{}
- func JSONStringToMap(jsonString string) map[string]interface{}
- func PrettyPrintJSONMap(jsonMap map[string]interface{})
- func RandSeq(n int) string
- func Sha1SumWithSalt(seed, salt string) string
- func StringValidate(body string, filters ...func(body string) bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aes128Decrypt ¶
Aes128Decrypt decrypts by AES128
func Aes128Encrypt ¶
Aes128Encrypt encrypts by AES128
func CheckIPInRange ¶
CheckIPInRange check input `ip` is between `start` and `end` IP range
func GetLastSplit ¶
GetLastSplit get the last part of splits
func IsBase32Encoded ¶
IsBase32Encoded checks if data is Base32 encoded
func JSONMapToString ¶
JSONMapToString converts json map to string
func JSONStringToList ¶
func JSONStringToList(jsonString string) []interface{}
JSONStringToList converts json string to list
func JSONStringToMap ¶
JSONStringToMap converts json string to map
func PrettyPrintJSONMap ¶
func PrettyPrintJSONMap(jsonMap map[string]interface{})
PrettyPrintJSONMap print json map with indent
func Sha1SumWithSalt ¶
Sha1SumWithSalt caculates SHA1 hash with salt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.