kubernetes/vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/token.go

const maxInt64

const minInt64

const maxUint64

const minUint64

const invalidTokenPanic

type Token

var Null

var False

var True

var ObjectStart

var ObjectEnd

var ArrayStart

var ArrayEnd

var zeroString

var zeroNumber

var nanString

var pinfString

var ninfString

func rawToken(s string) Token {}

// Bool constructs a Token representing a JSON boolean.
func Bool(b bool) Token {}

// String constructs a Token representing a JSON string.
// The provided string should contain valid UTF-8, otherwise invalid characters
// may be mangled as the Unicode replacement character.
func String(s string) Token {}

// Float constructs a Token representing a JSON number.
// The values NaN, +Inf, and -Inf will be represented
// as a JSON string with the values "NaN", "Infinity", and "-Infinity".
func Float(n float64) Token {}

// Int constructs a Token representing a JSON number from an int64.
func Int(n int64) Token {}

// Uint constructs a Token representing a JSON number from a uint64.
func Uint(n uint64) Token {}

// Clone makes a copy of the Token such that its value remains valid
// even after a subsequent Decoder.Read call.
func (t Token) Clone() Token {}

// Bool returns the value for a JSON boolean.
// It panics if the token kind is not a JSON boolean.
func (t Token) Bool() bool {}

// appendString appends a JSON string to dst and returns it.
// It panics if t is not a JSON string.
func (t Token) appendString(dst []byte, validateUTF8, preserveRaw bool, escapeRune func(rune) bool) ([]byte, error) {}

// String returns the unescaped string value for a JSON string.
// For other JSON kinds, this returns the raw JSON representation.
func (t Token) String() string {}

func (t Token) string() (string, []byte) {}

// appendNumber appends a JSON number to dst and returns it.
// It panics if t is not a JSON number.
func (t Token) appendNumber(dst []byte, canonicalize bool) ([]byte, error) {}

// Float returns the floating-point value for a JSON number.
// It returns a NaN, +Inf, or -Inf value for any JSON string
// with the values "NaN", "Infinity", or "-Infinity".
// It panics for all other cases.
func (t Token) Float() float64 {}

// Int returns the signed integer value for a JSON number.
// The fractional component of any number is ignored (truncation toward zero).
// Any number beyond the representation of an int64 will be saturated
// to the closest representable value.
// It panics if the token kind is not a JSON number.
func (t Token) Int() int64 {}

// Uint returns the unsigned integer value for a JSON number.
// The fractional component of any number is ignored (truncation toward zero).
// Any number beyond the representation of an uint64 will be saturated
// to the closest representable value.
// It panics if the token kind is not a JSON number.
func (t Token) Uint() uint64 {}

// Kind returns the token kind.
func (t Token) Kind() Kind {}

type Kind

const invalidKind

// String prints the kind in a humanly readable fashion.
func (k Kind) String() string {}

// normalize coalesces all possible starting characters of a number as just '0'.
func (k Kind) normalize() Kind {}