Documentation ¶
Index ¶
- func EnvFromMap(d map[string]interface{}) string
- func EnvMapFromMap(d map[string]interface{}) map[string]interface{}
- func MapCopy(dst interface{}, src interface{}) (err error)
- func MapToStruct(in map[string]string, out interface{}, keyPrefix string) (err error)
- func NativelyLittle() bool
- func OrEmpty(v *string) string
- func Rand(choices string, n int) string
- func RandDigits(n int) string
- func RandNano() string
- func RandPassword(n int) (ret string)
- func RandString(n int) string
- func RandUUID(n int) string
- func ShortName(n string) string
- func StructToMap(in interface{}, out map[string]string, prefix string) (err error)
- type IP4
- type IP4Net
- func (n IP4Net) Contains(ip IP4) bool
- func (n IP4Net) Equal(other IP4Net) bool
- func (n IP4Net) MarshalJSON() ([]byte, error)
- func (n IP4Net) Mask() uint32
- func (n IP4Net) Network() IP4Net
- func (n IP4Net) Next() IP4Net
- func (n IP4Net) Overlaps(other IP4Net) bool
- func (n IP4Net) String() string
- func (n IP4Net) StringSep(octetSep, prefixSep string) string
- func (n IP4Net) ToIPNet() *net.IPNet
- func (n *IP4Net) UnmarshalJSON(j []byte) error
- type Mutex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvFromMap ¶
func EnvMapFromMap ¶
func MapToStruct ¶
Convert a string map to a struct with type assertions along the way.
func RandDigits ¶
func RandPassword ¶
func RandString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.