util

package
v0.0.0-...-b48de1d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(raw []byte) string

func GetConnId

func GetConnId(conn gnet.Conn) string

func GoroutineID

func GoroutineID() int

func IsExported

func IsExported(name string) bool

func JoinServiceMethod

func JoinServiceMethod(s, m string) string

func PanicRepeatRun

func PanicRepeatRun(f func(), args ...PanicRepeatRunArgs)

func StringToBytes

func StringToBytes(s string) []byte

Types

type PanicRepeatRunArgs

type PanicRepeatRunArgs struct {
	Sleep time.Duration
	Try   int
}

Jump to

Keyboard shortcuts

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