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

internal/

directory
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT

Directories

Path Synopsis
cmd
benchcheck command
benchcheck detects performance degradation by comparing the benchmark results of the current working tree with those of the base branch.
benchcheck detects performance degradation by comparing the benchmark results of the current working tree with those of the base branch.
float_table command
float_table writes the table of the powers of ten of shortestDecimal ( internal/floatfmt/float_table.go ): for each k from floatKMin to floatKMax, g = ⌊10⁻ᵏ·2¹²⁵⁻ᶠ⌋ + 1, where f = ⌊−k·log₂10⌋ as floorLog2Pow10 computes it, so that 2¹²⁵ ≤ g < 2¹²⁶, as its high 63 bits and its low 63 bits.
float_table writes the table of the powers of ten of shortestDecimal ( internal/floatfmt/float_table.go ): for each k from floatKMin to floatKMax, g = ⌊10⁻ᵏ·2¹²⁵⁻ᶠ⌋ + 1, where f = ⌊−k·log₂10⌋ as floorLog2Pow10 computes it, so that 2¹²⁵ ≤ g < 2¹²⁶, as its high 63 bits and its low 63 bits.
generator command
pow10table command
pow10table writes the table of the powers of ten which jsonnum.ParseFloat multiplies a mantissa by ( internal/jsonnum/pow10_table.go ).
pow10table writes the table of the powers of ten which jsonnum.ParseFloat multiplies a mantissa by ( internal/jsonnum/pow10_table.go ).
This files's processing codes are inspired by https://github.com/segmentio/encoding.
This files's processing codes are inspired by https://github.com/segmentio/encoding.
run
Package run drives the encoder: it compiles the opcodes of a value, sets up the runtime context and runs the VM which the options choose.
Package run drives the encoder: it compiles the opcodes of a value, sets up the runtime context and runs the VM which the options choose.
vm
Code generated by internal/cmd/generator.
Code generated by internal/cmd/generator.
vm_color
Code generated by internal/cmd/generator.
Code generated by internal/cmd/generator.
vm_color_indent
Code generated by internal/cmd/generator.
Code generated by internal/cmd/generator.
vm_indent
Code generated by internal/cmd/generator.
Code generated by internal/cmd/generator.
Package floatfmt writes floats as JSON numbers, by their shortest decimal, as ECMA-262 formats numbers: the format of encoding/json and of encoding/json/jsontext.
Package floatfmt writes floats as JSON numbers, by their shortest decimal, as ECMA-262 formats numbers: the format of encoding/json and of encoding/json/jsontext.
This files's processing codes are inspired by https://github.com/segmentio/encoding.
This files's processing codes are inspired by https://github.com/segmentio/encoding.
Package jsonfields finds the JSON object members of a Go struct by the rules of encoding/json/v2: the fields which a value of the struct is marshaled to and unmarshaled from, with the options of their `json` tags.
Package jsonfields finds the JSON object members of a Go struct by the rules of encoding/json/v2: the fields which a value of the struct is marshaled to and unmarshaled from, with the options of their `json` tags.
Package jsonnum reads JSON numbers by the grammar of RFC 8259, section 6, for the encoder and the decoder of encoding/json and for jsontext.
Package jsonnum reads JSON numbers by the grammar of RFC 8259, section 6, for the encoder and the decoder of encoding/json and for jsontext.
This files's string processing codes are inspired by https://github.com/segmentio/encoding.
This files's string processing codes are inspired by https://github.com/segmentio/encoding.
Package jsonsyntax passes the syntax errors of the package jsontext to encoding/json, which reports them in its own words: jsontext keeps how an error is made, which encoding/json can't see from outside of it.
Package jsonsyntax passes the syntax errors of the package jsontext to encoding/json, which reports them in its own words: jsontext keeps how an error is made, which encoding/json can't see from outside of it.
Package options is the state of the options of jsontext and of the v2 json package: both packages take the same Options, so that the options of one may be given to the functions of the other, as encoding/json/v2 and encoding/json/jsontext allow.
Package options is the state of the options of jsontext and of the v2 json package: both packages take the same Options, so that the options of one may be given to the functions of the other, as encoding/json/v2 and encoding/json/jsontext allow.
Package textcoder lets the v2 json package give a jsontext.Encoder to a method or a function of marshaling, which writes after the output of the encoder of the v2 semantics: jsontext sets these functions, which take its encoder as an any, since this package can't import jsontext.
Package textcoder lets the v2 json package give a jsontext.Encoder to a method or a function of marshaling, which writes after the output of the encoder of the v2 semantics: jsontext sets these functions, which take its encoder as an any, since this package can't import jsontext.

Jump to

Keyboard shortcuts

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