Documentation ¶ Index ¶ func ParsePort(port string) (uint16, error) type Addr func New(host string, port uint16) *Addr func Parse(addr string) (*Addr, error) func (a *Addr) MarshalText() ([]byte, error) func (a *Addr) String() string func (a *Addr) UnmarshalText(text []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ParsePort ¶ func ParsePort(port string) (uint16, error) Types ¶ type Addr ¶ type Addr struct { Host string `mapstructure:"host"` Port uint16 `mapstructure:"port"` } func New ¶ func New(host string, port uint16) *Addr func Parse ¶ func Parse(addr string) (*Addr, error) func (*Addr) MarshalText ¶ func (a *Addr) MarshalText() ([]byte, error) func (*Addr) String ¶ func (a *Addr) String() string func (*Addr) UnmarshalText ¶ func (a *Addr) UnmarshalText(text []byte) error Source Files ¶ View all Source files addr.goport.go Click to show internal directories. Click to hide internal directories.