https://github.com/kkirsche/netaddr-go
A Go library for performing calculations on IPv4 and IPv6 subnets.
https://github.com/kkirsche/netaddr-go
Last synced: 5 months ago
JSON representation
A Go library for performing calculations on IPv4 and IPv6 subnets.
- Host: GitHub
- URL: https://github.com/kkirsche/netaddr-go
- Owner: kkirsche
- License: apache-2.0
- Fork: true (dspinhirne/netaddr-go)
- Created: 2019-08-22T17:18:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T13:30:22.000Z (about 8 years ago)
- Last Synced: 2024-06-20T08:00:28.770Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netaddr
A Go library for performing calculations on IPv4 and IPv6 subnets. There is also limited support for EUI addresses.
# Installation
It should be noted that while the repository name is "netaddr-go" the package name is simply "netaddr".
go get github.com/dspinhirne/netaddr-go
# Usage
package main
import "fmt"
import "github.com/dspinhirne/netaddr-go"
func main() {
net,_ := netaddr.ParseIPv4Net("192.168.1.0/24")
fmt.Println(net)
}
# Documentation
Available online [here](https://godoc.org/github.com/dspinhirne/netaddr-go).