util

package
v0.0.0-...-bf94cd9 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToFloat32

func ByteToFloat32(bytes []byte) float32

func ByteToFloat64

func ByteToFloat64(bytes []byte) float64

func BytesToInt64

func BytesToInt64(buf []byte) int64

func Convert2Byte

func Convert2Byte(invoker_ret interface{}) []byte

func DecodeJsonStr

func DecodeJsonStr(str string) string

反解json字符串

func EncodeJsonStr

func EncodeJsonStr(str string) string

转义json字符串

func Float32ToByte

func Float32ToByte(float float32) []byte

func Float64ToByte

func Float64ToByte(float float64) []byte

func GetJsonChildArray

func GetJsonChildArray(str string, key string) (string, error)

func GetJsonChildBool

func GetJsonChildBool(str string, key string) (bool, error)

func GetJsonChildObj

func GetJsonChildObj(str string, key string) (string, error)

func GetJsonChildStr

func GetJsonChildStr(str string, key string) (string, error)

func Int2String

func Int2String(from int) string

func Int64ToBytes

func Int64ToBytes(i int64) []byte

func IntFormat2String

func IntFormat2String(from int) string

func RandInt64

func RandInt64(min, max int64) int64

func TrimStr

func TrimStr(str string) string

func TrimX001

func TrimX001(data_buf []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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