Help us shape the future of Go! Take the 2026 Go Developer Survey

alg

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitSortMapKeys = iota
	BitEscapeHTML
	BitCompactMarshaler
	BitNoQuoteTextMarshaler
	BitNoNullSliceOrMap
	BitValidateString
	BitNoValidateJSONMarshaler
	BitNoEncoderNewline
	BitEncodeNullForInfOrNan

	BitPointerValue = 63
)

Variables

This section is empty.

Functions

func F32toa

func F32toa(buf []byte, v float32) []byte

func F64toa

func F64toa(buf []byte, v float64) []byte

func HtmlEscape

func HtmlEscape(dst []byte, src []byte) []byte

func I64toa

func I64toa(buf []byte, v int64) []byte

func IsValidNumber added in v1.14.1

func IsValidNumber(s string) bool

func IteratorNext

func IteratorNext(p *MapIterator)

func IteratorStop

func IteratorStop(p *MapIterator)

func Quote

func Quote(buf []byte, val string, double bool) []byte

func U64toa

func U64toa(buf []byte, v uint64) []byte

func Valid

func Valid(data []byte) (ok bool, start int)

Valid validates json and returns first non-blank character position, if it is only one valid json value. Otherwise returns invalid character position using start.

Note: it does not check for the invalid UTF-8 characters.

Types

type MapIterator

type MapIterator struct {
	It rt.GoMapIterator // must be the first field
	// contains filtered or unexported fields
}

func IteratorStart

func IteratorStart(t *rt.GoMapType, m unsafe.Pointer, fv uint64) (*MapIterator, error)

Jump to

Keyboard shortcuts

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