Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.41 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.41 KB

Emitter address

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.

Join the chat at https://gitter.im/emitter-io/public Build status Coverage Status Go Report Card

Installation

go get -u github.com/emitter-io/address

API Documentation

For full API documentation, please refer to our godoc.org/github.com/emitter-io/address which contains all of the methods that package exposes.

Parsing IP Addresses

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")