Addr is a simple library define Address struct, and support parsing from string or environment variable.
type Address struct {
// Host domain name or ipv4, ipv6 address
Host string
// Port service port
Port int
}
- Go 1.17+
go get github.com/libgox/addr