util

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceIP added in v1.5.0

func GetInterfaceIP() string

GetInterfaceIP get interface ip

func IsLocalIP

func IsLocalIP(ip string) bool

IsLocalIP check if local ip

func RandomString added in v1.5.0

func RandomString(n int) string

RandomString generate a random string

func Recover

func Recover(flag string)

Recover print stack

Types

type AtomicBool added in v1.5.0

type AtomicBool struct {
	// contains filtered or unexported fields
}

AtomicBool represents a atomic bool

func (*AtomicBool) Get added in v1.5.0

func (b *AtomicBool) Get() bool

Get atomic bool

func (*AtomicBool) Set added in v1.5.0

func (b *AtomicBool) Set(value bool)

Set atomic bool

Jump to

Keyboard shortcuts

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