net

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalIP

func ExternalIP() (net.IP, error)

func GetCommonIP

func GetCommonIP() (string, error)

func GetIP

func GetIP() string

func GetLocalIPv4Address

func GetLocalIPv4Address() (string, error)

获取本机ip地址

Types

type StrAddr

type StrAddr string

func (StrAddr) Network

func (a StrAddr) Network() string

func (StrAddr) String

func (a StrAddr) String() string

Jump to

Keyboard shortcuts

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