utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPv6BracketAdd

func IPv6BracketAdd(ip string) string

IPv6BracketAdd add brackets around an IPv6 address. If ip is an IPv4 address, returns it as is.

func IPv6BracketRemove

func IPv6BracketRemove(ip string) string

IPv6BracketRemove removes brackets around an IPv6 address. If ip is an IPv4 address, returns it as is.

func Lookup46

func Lookup46(domain string) ([]string, error)

Lookup46 do a IPv4/IPv6 lookup on the domain. Return NXDOMAIN if both 4 and 6 is NXDOMAIN. This function adds brackets around IPv6 addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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