Versions in this module Expand all Collapse all v1 v1.0.0 Feb 10, 2021 Changes in this version + const EFlop + const Flop + const GFlop + const Hostname + const IP + const KFlop + const MFlop + const PFlop + const TFlop + const URL + const URLIP + const URLPath + const URLPort + const URLSchema + const URLSubdomain + const URLUsername + var CryptoHeader = fmt.Sprintf("==AES%d==", KeyLength) + var KeyBuffer = []byte(strings.Repeat("=", 32)) + var KeyLength = 32 + var MD5Sum = md5sumTy + var SHASum = shasumTy + func Decrypt(key, text []byte) ([]byte, error) + func DecryptString(key, text string) (string, error) + func DecryptStringBase64(key, text string) (string, error) + func DirSize(path string) (int64, error) + func Encrypt(key, text []byte) ([]byte, error) + func EncryptString(key, text string) (string, error) + func EncryptStringBase64(key, text string) (string, error) + func Every(duration time.Duration, f func()) + func FileSize(filepath string) (int64, error) + func Flatten2DFloat32(f interface{}) [][]float32 + func FlattenBoolSlice(data interface{}) []bool + func FlattenFloat32(f interface{}) ([]float32, error) + func FlattenFloat32Slice(data interface{}) []float32 + func FlattenFloat64Slice(data interface{}) []float64 + func FlattenInt16Slice(data interface{}) []int16 + func FlattenInt32Slice(data interface{}) []int32 + func FlattenInt64Slice(data interface{}) []int64 + func FlattenInt8Slice(data interface{}) []int8 + func FlattenIntSlice(data interface{}) []int + func FlattenUint16Slice(data interface{}) []uint16 + func FlattenUint32Slice(data interface{}) []uint32 + func FlattenUint64Slice(data interface{}) []uint64 + func FlattenUint8Slice(data interface{}) []uint8 + func FlattenUintSlice(data interface{}) []uint + func FlattenUintptrSlice(data interface{}) []uintptr + func FlattenedLength(val interface{}) (int64, error) + func Flops(s uint64) string + func GetExternalIp() (string, error) + func GetFunctionName(i interface{}) string + func GetHostIP() string + func GetLocalIP0() (string, error) + func GetLocalIp() (string, error) + func IsEncrypted(b []byte) bool + func IsEncryptedString(s string) bool + func IsURL(str string) bool + func RandString(strSize int, randType string) string + func ShapeAndTypeOf(val interface{}) (shape []int64, dt reflect.Type, err error) + type ElementType generic.Type + func FlattenElementTypeSlice(data interface{}) []ElementType