system

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName() string

func GetEnvDefault

func GetEnvDefault(key, defVal string) string

取环境变量

func GetLocalIP

func GetLocalIP(address ...string) string

获取本机ip地址,默认获取对外的ip地址

func GetLocalIPs

func GetLocalIPs() (ips []string)

获取本机所有ip地址

func GetMacAddrs

func GetMacAddrs() (macAddrs []string)

获取本机mac地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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