ipconv

package
v0.0.0-...-f5e49c7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToIPv4

func BytesToIPv4(IPv4Bytes []byte) string

func CIDRMinMaxInt

func CIDRMinMaxInt(cidr string) (uint32, uint32, error)

func IPv4ToBytes

func IPv4ToBytes(IPv4String string) ([]byte, error)

func IPv4ToInt

func IPv4ToInt(IPv4String string) (uint32, error)

func IntToIPv4

func IntToIPv4(IPv4Int uint32) string

func RoundDecIP

func RoundDecIP(IPv4Int uint32, roundTo uint32) uint32

func RoundIP

func RoundIP(IPv4String string, roundTo uint32) (uint32, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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