util

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNodeId

func CheckNodeId(nodeId int64) bool

func CreateNodeId

func CreateNodeId() int64

func Decode

func Decode(buf []byte, e any) (err error)

func Encode

func Encode(e any) (by []byte, err error)

func IsFileExist

func IsFileExist(path string) (_r bool)

func IsURL

func IsURL(str string) bool

func OpenFile

func OpenFile(fname string, flag int, perm os.FileMode) (file *os.File, err error)

func PDecode

func PDecode(bs []byte, m proto.Message) (err error)

func PEncode

func PEncode(m proto.Message) ([]byte, error)

func ParseAddr

func ParseAddr(addr string) (_r string, err error)

func Recover

func Recover()

func TimestrampFormat

func TimestrampFormat(tt int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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