nettools

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hostname

func Hostname(ip net.IP) ([]string, error)

Hostname returns hostname

func IP

func IP(r *http.Request) (net.IP, error)

IP returns IP address from requester

func Inet6Aton added in v0.0.9

func Inet6Aton(ip net.IP) string

Inet6Aton Encodes ip address to hex

func Inet6AtonDecode added in v0.0.9

func Inet6AtonDecode(ipHex string) (ip net.IP)

Inet6AtonDecode decodes ip address from hex

Types

This section is empty.

Jump to

Keyboard shortcuts

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