Documentation ¶
Index ¶
- Constants
- Variables
- func Argument(d map[string]interface{}, name string) (string, bool)
- func ArgumentInteger(d map[string]interface{}, name string) (int, bool)
- func ArgumentIntegerMust(d map[string]interface{}, name string) int
- func ArgumentMust(d map[string]interface{}, name string) string
- func LookupIP(host string) []net.IP
- func LookupIPTimeout(host string, timeout time.Duration) []net.IP
- func ReplaceUnspecifiedIP(network string, listenAddr, globalAddr string) (string, error)
- func ResolveTCPAddr(addr string) *net.TCPAddr
- func ResolveTCPAddrTimeout(addr string, timeout time.Duration) *net.TCPAddr
- type Usage
Constants ¶
View Source
const ( Version = "2018-11-04 16:22:35 +0800 @de1ad026e329561c22e2a3035fbfe89dc7fef764 @3.2.2-12-gde1ad026" Compile = "2022-01-05 09:55:50 +0800 by go version go1.17.5 darwin/amd64" )
Variables ¶
View Source
var (
Hostname, _ = os.Hostname()
HostIPs, InterfaceIPs []string
)
Functions ¶
func ArgumentIntegerMust ¶
func ArgumentMust ¶
func ReplaceUnspecifiedIP ¶
func ResolveTCPAddr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.