MCPcopy Create free account
hub / github.com/encodeous/nylon / MakeSet

Function MakeSet

state/config.go:139–149  ·  view source on GitHub ↗
(prefix []netip.Prefix)

Source from the content-addressed store, hash-verified

137}
138
139func MakeSet(prefix []netip.Prefix) *netipx.IPSet {
140 builder := netipx.IPSetBuilder{}
141 for _, pfx := range prefix {
142 builder.AddPrefix(pfx)
143 }
144 res, err := builder.IPSet()
145 if err != nil {
146 panic(err)
147 }
148 return res
149}
150
151/*
152ParseGraph Graph syntax is something like this:

Callers 1

ComputeSysRouteTableMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected