addr

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL