net

package
v1.100.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBitLen

func GetBitLen(address string) (int, error)

GetBitLen returns the bit length of the given IP address.

func Join added in v1.99.0

func Join(cidrs []net.IPNet, sep string) string

Join concatenates the CIDRs of the given networks to create a single string with a custom separator character.

func JoinByComma added in v1.99.0

func JoinByComma(cidrs []net.IPNet) string

JoinByComma concatenates the CIDRs of the given networks to create a single string with comma as separator.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL