internal

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ScratchBuffers = scratchBuffers{&sync.Pool{New: func() interface{} { x := make([]byte, 0, 1024); return bytes.NewBuffer(x) }}}
View Source
var ScratchJS = scratchJS{&sync.Pool{
	New: func() interface{} {
		js := jsonEncoder{buf: &strings.Builder{}}
		js.enc = fastJSONNewEncoder(js.buf)
		return &js
	},
}}

Functions

func WrapError

func WrapError(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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