netutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPort

func ExtractPort(host string) uint

ExtractPort extracts the port from a host string

func Get

func Get(url string) (resp *http.Response, err error)

Get issues a GET to the specified URL - a drop-in replacement for http.Get with timeouts.

func GetFreePort

func GetFreePort() (int, error)

GetFreePort asks the kernel for a free open port that is ready to use.

func LocalIP

func LocalIP() (net.IP, error)

LocalIP get the host machine local IP address

Types

This section is empty.

Jump to

Keyboard shortcuts

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