Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillNilSlices ¶
func FillNilSlices(data interface{}) error
FillNilSlices sets default value on slices that are still nil.
func RandomString ¶
RandomString returns a string of random characters (taken from randomCharset) of the specified length.
func SeedFromBytes ¶
SeedFromBytes calculates a weak 64 bit hash from the given byte slice, suitable for use a predictable random seed.
func SetDefaults ¶
func SetDefaults(data interface{}) error
SetDefaults sets default values on a struct, based on the default annotation.
func UniqueStrings ¶
UniqueStrings returns a list on unique strings, trimming and sorting them at the same time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.