misc

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeTCPAddr

func CanonicalizeTCPAddr(addr *net.TCPAddr) *net.TCPAddr

func CompareIP

func CompareIP(a net.IP, b net.IP) int

func CompareTCPAddr

func CompareTCPAddr(a *net.TCPAddr, b *net.TCPAddr) int

func ParseBool

func ParseBool(str string) (bool, error)

func ParseIP

func ParseIP(host string) (net.IP, error)

func ParseIPAndZone

func ParseIPAndZone(host string) (net.IP, string, error)

func ParsePort

func ParsePort(port string) (uint16, error)

func ParseTCPAddr

func ParseTCPAddr(str, defaultPort string) (*net.TCPAddr, error)

func ParseTCPAddrList

func ParseTCPAddrList(str, defaultPort string) ([]*net.TCPAddr, error)

func SplitHostPort

func SplitHostPort(str, defaultPort string) (host string, port string, err error)

func StrictUnmarshalJSON

func StrictUnmarshalJSON(raw []byte, v interface{}) error

func TryBase64DecodeString

func TryBase64DecodeString(str string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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