helper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BufPool = &sync.Pool{
		New: func() any {
			return &bytes.Buffer{}
		},
	}
)

Functions

func B2S

func B2S(b []byte) string

func DecodeVarint

func DecodeVarint(buf []byte) (x uint64, n int)

func EncodeVarint

func EncodeVarint(x uint64) []byte

func IsChanClosed

func IsChanClosed(ch interface{}) bool

func S2B

func S2B(s string) []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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