util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32Hash

func CRC32Hash(s string) uint32

func CheckArgs1MsgFun

func CheckArgs1MsgFun(cb interface{}) (err error, funValue reflect.Value, msgType reflect.Type)

检查形如 func(args0 xx,args1 proto.Message)这种的func

func GetGoroutineID

func GetGoroutineID() uint64

func PrintCurrNano

func PrintCurrNano(title string)

func PrintGoroutineID

func PrintGoroutineID(title string)

func ProtectedFun

func ProtectedFun(f func())

func ProtoHash

func ProtoHash(msg proto.Message) (uint32, reflect.Type)

func StringHash

func StringHash(s string) (hash uint16)

字符串转为16位整形哈希

Types

This section is empty.

Jump to

Keyboard shortcuts

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