This golang package is used for IP/hardware address parsing for emitter.io. This provides a simple way of parsing a variety of IP addresses and, in future, domain names.
go get -u github.com/emitter-io/address
For full API documentation, please refer to our godoc.org/github.com/emitter-io/address which contains all of the methods that package exposes.
Typical usage consists of calling parse function which provides a set of helpers such as (e.g. private
, public
and external
) which then get appropriately parsed to the TCP IP Address, as demonstrated below.
addr, err := address.Parse("external:8080")