Documentation
¶
Index ¶
- func Bcrypt(password string, rounds ...int) (string, error)
- func EncodeToBase64(data []byte) string
- func GenerateKey() ([]byte, error)
- func GenerateRandomString(length int) string
- func PkgName(v interface{}) string
- func PrettyPrint(data map[string]interface{}) (string, error)
- func StructToMap(obj interface{}) (map[string]interface{}, error)
- type Pkg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeToBase64 ¶ added in v0.1.1
func GenerateKey ¶ added in v0.1.1
func GenerateRandomString ¶
GenerateRandomString generates a random string of a given length using the characters provided.
func PrettyPrint ¶
PrettyPrint converts a map to a pretty-printed JSON string
func StructToMap ¶
StructToMap converts any struct to map[string]interface{}
Types ¶
Click to show internal directories.
Click to hide internal directories.