utils

package
v0.0.0-...-3b4426b Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentPID

func CurrentPID() string

CurrentPID return the current running process id

func HostIPV4

func HostIPV4() string

HostIPV4 return the current client ip v4

func MarshalJsonBytes

func MarshalJsonBytes(obj interface{}) []byte

func MarshalJsonString

func MarshalJsonString(obj interface{}) string

func RandomNumberStr

func RandomNumberStr(length uint32) string

func RandomStr

func RandomStr(length uint32) string

func UnMarshalJsonBytes

func UnMarshalJsonBytes(data []byte, obj interface{})

func UnMarshalJsonString

func UnMarshalJsonString(data string, obj interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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