shims

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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