internal

package
v1.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primitive

type Primitive interface {
	~bool |
		~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Primitive is a type constraint that represents the supported primitive types for StringOrPrimitive.

type StringOrPrimitive

type StringOrPrimitive[T Primitive] string

StringOrPrimitive is stored canonically as a string, but can decode from other primitive values such as ints and bools.

func (*StringOrPrimitive[T]) MarshalJSON

func (b *StringOrPrimitive[T]) MarshalJSON() ([]byte, error)

func (*StringOrPrimitive[T]) UnmarshalJSON

func (b *StringOrPrimitive[T]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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