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 ¶
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
Click to show internal directories.
Click to hide internal directories.