utils

package
v0.0.0-...-5f3621a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachMapSort

func EachMapSort(eachMap interface{}, eachFunc interface{}) error

func GetInterfaceFiledValue

func GetInterfaceFiledValue(v interface{}, fieldName string) reflect.Value

func GetLinesFromBuffer

func GetLinesFromBuffer(buf *bytes.Buffer) []string

func GetSelfIps

func GetSelfIps() map[string]map[string]string

func GetSelfPath

func GetSelfPath() string

func GetSelfPathFull

func GetSelfPathFull() string

func GetSelfV4IFaceFirst

func GetSelfV4IFaceFirst() string

func GetSelfV4IpFirst

func GetSelfV4IpFirst(iFace ...string) string

func GetSelfV4Ips

func GetSelfV4Ips() map[string]string

func GetSelfV6IFaceFirst

func GetSelfV6IFaceFirst() string

func GetSelfV6IpFirst

func GetSelfV6IpFirst(iFace ...string) string

func GetSelfV6Ips

func GetSelfV6Ips() map[string]string

func InterfaceToStruct

func InterfaceToStruct(out interface{}, in interface{}) error

func IsUuid

func IsUuid(obj interface{}) bool

func MakeInstanceFromSlice

func MakeInstanceFromSlice(v interface{}) (i interface{}, err error)

func MapStringValues

func MapStringValues(m map[string]string) (v []string)

func ReTry

func ReTry(callback func() bool, times int, step time.Duration)

func RunningOs

func RunningOs(osName ...string) string

func UuidGenerate

func UuidGenerate() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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