Documentation ¶ Overview ¶ Package utils provides utility functions for the platform package. Index ¶ func IPPrefixFrom(address, netmask string) (netip.Prefix, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IPPrefixFrom ¶ func IPPrefixFrom(address, netmask string) (netip.Prefix, error) IPPrefixFrom make netip.Prefix from cidr-address and netmask strings. address can be IP or CIDR (1.1.1.1 or 1.1.1.1/8 or 1.1.1.1/255.0.0.0) netmask can be IP or number (255.255.255.0 or 24 or empty). Types ¶ This section is empty. Source Files ¶ View all Source files utils.go Click to show internal directories. Click to hide internal directories.