Documentation ¶
Index ¶
Constants ¶
View Source
const ( IPv4 = syscall.AF_INET IPv6 = syscall.AF_INET6 )
Possible address families.
Variables ¶
This section is empty.
Functions ¶
func AddrFamily ¶
AddrFamily returns the address family of an IP address.
func InterfaceIPs ¶
InterfaceIPs returns a slice of interface IP addresses.
func MustMarshal ¶
func MustMarshal(object interface{}, options JSONOptions) []byte
MustMarshal will try to convert the given object to JSON or panic if there's an error.
Types ¶
type DynamicMap ¶
type DynamicMap map[string]interface{}
DynamicMap are arbitrary options passed directly to the driver.
func (DynamicMap) Get ¶
func (do DynamicMap) Get(key string, d interface{}) interface{}
Get returns a typed option or a default value if the option is not set.
type JSONOptions ¶
type JSONOptions struct {
Indent bool
}
JSONOptions configure JSON marshalling behavior.
Click to show internal directories.
Click to hide internal directories.