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

shims

package
v2.30.0 Latest Latest
Warning

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

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

Documentation

Overview

This package provides shims over Go 1.2{2,3} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package.

Inside the vendored package, all shim code has comments that begin look like // SHIM(...): ...

Index

Constants

View Source
const EscapeHTMLByDefault = true

Variables

This section is empty.

Functions

func TypeFor

func TypeFor[T any]() reflect.Type

TypeFor returns the [Type] that represents the type argument T.

Types

type AppendableStdEncoding

type AppendableStdEncoding struct{ *base64.Encoding }

func (AppendableStdEncoding) AppendEncode

func (enc AppendableStdEncoding) AppendEncode(dst, src []byte) []byte

AppendEncode appends the base64 encoded src to dst and returns the extended buffer.

type OverflowableType

type OverflowableType struct{ reflect.Type }

func (OverflowableType) OverflowInt

func (t OverflowableType) OverflowInt(x int64) bool

func (OverflowableType) OverflowUint

func (t OverflowableType) OverflowUint(x uint64) bool

Jump to

Keyboard shortcuts

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