xnet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalIP

func LocalIP() (string, error)

LocalIP returns the non loopback local IP of the host.

func ParseAddr

func ParseAddr(addr string) (host string, port string)

ParseAddr parses the address to host and port.

func ParseURL

func ParseURL(endpoint string) (host string, err error)

ParseURL parses the url to host.

func Port

func Port(lis net.Listener) (int, bool)

Port returns the port of the address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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