taggedunion

package
v0.0.0-...-1be23ea Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, ut Type) error

func UnmarshalDecode

func UnmarshalDecode(dec *jsontext.Decoder, ut Type) error

Types

type Type

type Type interface {
	Discriminator() string
	Mapping() map[string]any
	SetUnderlying(u any)
}

Jump to

Keyboard shortcuts

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