zmap / Go Iptree
Licence: apache-2.0
GoLang IP Radix Tree
Stars: ✭ 76
Programming Languages
go
31211 projects - #10 most used programming language
GoLang IPTree
This is a golang based prefix tree for IP subnets
Install
go-iptree can be used by including:
import "github.com/zmap/go-iptree/iptree"
Usage
Below is a simple example:
t := iptree.New()
t.AddByString("0.0.0.0", 0)
t.AddByString("128.255.0.0/16", 1)
t.AddByString("128.255.134.0/24", 0)
if val, found, err := t.GetByString("128.255.134.5"); err == nil && found {
fmt.Println("Value is ", val)
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].