utils

package
v0.0.0-...-80b9c46 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(assert bool, message string)

func Assertf

func Assertf(assert bool, message string, params ...interface{})

Types

type SlicePool

type SlicePool interface {
	Get(int) []byte
	Put([]byte)
}
var GlobalPool SlicePool

GlobalPool just for test nolint:gochecknoglobals // this may not be used in production mode, just for test and benchmark

func NewSlicePool

func NewSlicePool(maxLen, minLen int) SlicePool

Jump to

Keyboard shortcuts

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