Documentation
¶
Index ¶
- func CompareJSON(j1, j2 string) (bool, error)
- func Contains(array []string, s string) bool
- func Copy(src *url.URL) *url.URL
- func CopyJSON(a interface{}, b interface{})
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomStringBase64(s int) (string, error)
- func HashCode(h interface{}) uint64
- func RandSeq(n int) string
- func ToInterface(myMap map[string]interface{}, resultData interface{}) error
- func ToJSON(v interface{}) (string, error)
- func ToMap(v interface{}) (map[string]interface{}, error)
- func UniqueSlice(input []string) []string
- func UniqueStructSlice(input []interface{}) []interface{}
- func Validate(t interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareJSON ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomStringBase64 ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
func ToInterface ¶
func UniqueSlice ¶
func UniqueStructSlice ¶
func UniqueStructSlice(input []interface{}) []interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.