net

package
v1.10.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonIP added in v1.5.11

func CommonIP() (string, error)

func ExternalIP

func ExternalIP() (net.IP, error)

func ExternalIPString added in v1.5.11

func ExternalIPString() string

func LocalIPv4Address added in v1.5.11

func LocalIPv4Address() (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

Directories

Path Synopsis
fs
gin
grpc/web
`grpcweb` implements the gRPC-Web spec as a wrapper around a gRPC-Go Server.
`grpcweb` implements the gRPC-Web spec as a wrapper around a gRPC-Go Server.
tcp

Jump to

Keyboard shortcuts

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