Categorygithub.com/itdesign-at/golib/converter
package
1.0.3
Repository: https://github.com/itdesign-at/golib.git
Documentation: pkg.go.dev

# README

package converter

FunctionComment
func Denormalize(in string) stringDenormalize does the opposite of Normalize
func Normalize(in string) stringNormalize a string by removing all special characters
func GetRandomString(length int) stringreturns a random string with length given
func GetMobileNumber(input string) (string, error)extract the mobile number without blanks
func PrepareMobileNumber(input interface{}) (string, error)PrepareMobileNumber returns 0043664....
func Fnv1aHash(input string) stringreturns a 32 bit FNV-1a hash
func B64Dec(b64s string) (string, error)decode string in base64 format
func B64MustDec(b64s string) stringdecode string in base64 format, panics on error
func B64Enc(s string) stringencode string to base64 format
func Dec(format string, src string, dst interface{}) errordecode string in specific format
func Enc(format string, src interface{}) (string, error)encode string to specific format
func MustDec(format string, src string, dst interface{})decode string to specific format, panics on error
func MustEnc(format string, src interface{}) stringencode string to specific format, panics on error
func JsonDec(src string, dst interface{}) errordecode json in specific format
func JsonEnc(src interface{}) (string, error)encode json to specific format
func JsonMustDec(src string, dst interface{})decode json to specific format, panics on error
func JsonMustEnc(src interface{}) stringencode json to specific format, panics on error