Documentation ¶
Overview ¶
Package cidr provides common functions useful when working with Classless Inter-Domain Routing (CIDR)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastAddress ¶
BroadcastAddress returns the last IP address of an IP network
Types ¶
type Groups ¶ added in v1.6.0
Groups allows parsing cidr groups. Example: [v1, v2, v3], [v4], v5 =>
[][]*net.IPNet{ {v1, v2, v3}, {v4}, {v5}, }
Can be used for env configuration. See at https://github.com/kelseyhightower/envconfig#custom-decoders
Click to show internal directories.
Click to hide internal directories.