utils

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextIsDone

func ContextIsDone(ctx context.Context) error

ContextIsDone 判断上下文(Context)是否已经结束,完成

func GetLocalIPv4

func GetLocalIPv4() string

GetLocalIPv4 获取当前IPv4地址

func GetMasterIP

func GetMasterIP() string

GetMasterIP 获取连接互联网的主IP地址

func Hostname

func Hostname() string

*

@author : Jerbe - The porter from Earth
@time : 2023/9/19 21:40
@describe :

Hostname 获取主机名

func IsNil

func IsNil(v interface{}) bool

IsNil 检测是否是真nil值

Types

This section is empty.

Jump to

Keyboard shortcuts

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