Versions in this module Expand all Collapse all v1 v1.0.3 Sep 16, 2021 Changes in this version + func StructToBulkInsert(src interface{}, tag string) ([]string, []interface{}, []string, error) v1.0.2 Sep 11, 2021 Changes in this version + func ParseDuration(s string) (time.Duration, error) v1.0.1 Sep 5, 2021 Changes in this version + func InArray(val interface{}, array interface{}) bool v1.0.0 Sep 5, 2021 Changes in this version + func DebugPrint(v ...interface{}) + func DumpToString(v interface{}) string + func GenerateRandomNumberString(n int) string + func IsEmptyValue(i interface{}) bool + func IsSameType(src, dest interface{}) bool + func ReadFileAsBytes(filePath string) ([]byte, error) + func ReadPrivateKey(privateKeyData []byte) (privateKey *rsa.PrivateKey, err error) + func ReadPrivateKeyFile(filepath string) (privateKey *rsa.PrivateKey, err error) + func ReadPublicKeyByte(publicKeyData []byte) (publicKey *rsa.PublicKey, err error) + func ReadPublicKeyFile(filePath string) (pubKey *rsa.PublicKey, err error) + func StreamToByte(stream io.Reader) []byte + func StreamToString(stream io.Reader) string + func StringJoin(elems []string, sep, lastSep string) string + func StringReplacer(msg string, replacers map[string]string) string + func StringToDate(s string) time.Time + func StringToDateE(s string) (time.Time, error) + func StructExtractFieldValue(src interface{}, tag string) ([]string, []interface{}, error) + func StructToMap(src interface{}, tag string) (map[string]interface{}, error) + func ToJSONByte(v interface{}) []byte + func ToString(value interface{}) string + func WriteFile(content []byte, filename string) (err error)