Documentation ¶
Index ¶
- Constants
- func CidrToIP(ctx context.Context, input []types.Value) (types.Value, error)
- func CidrToMask(ctx context.Context, input []types.Value) (types.Value, error)
- func CidrToPrefix(ctx context.Context, input []types.Value) (types.Value, error)
- func IsMac(ctx context.Context, input []types.Value) (types.Value, error)
- func MacFmt(ctx context.Context, input []types.Value) (types.Value, error)
- func Macs(ctx context.Context, input []types.Value) (types.Value, error)
- func OldMacFmt(ctx context.Context, input []types.Value) (types.Value, error)
Constants ¶
View Source
const (
// ModuleName is the prefix given to all the functions in this module.
ModuleName = "net"
)
Variables ¶
This section is empty.
Functions ¶
func CidrToMask ¶
CidrToMask returns the subnet mask from a CIDR address.
func CidrToPrefix ¶
CidrToPrefix returns the prefix from a CIDR address. For example, if you give us 192.0.2.0/24 then we will return "24" as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.