Documentation
¶
Index ¶
- func Apply[T Opt[V], V any](options V, opts ...T) (*V, error)
- func Flat[T Opt[V], V any](opts ...T) T
- func GuessMediaType(x string) (string, error)
- func Marshal(typ string, spec *Spec) ([]byte, error)
- func PluginForTarget(target string) (string, error)
- func Unmarshal(typ string, data []byte, spec *Spec) error
- type Converter
- type ConverterOption
- type ConverterOptions
- type Generator
- type GeneratorOption
- type GeneratorOptions
- type NewConverter
- type NewGenerator
- type Opt
- type Runner
- type RunnerFactory
- type Spec
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuessMediaType ¶ added in v0.0.19
func PluginForTarget ¶ added in v0.0.8
Types ¶
type ConverterOption ¶
type ConverterOption func(*ConverterOptions) error
func WithMediaType ¶ added in v0.0.19
func WithMediaType(t string) ConverterOption
type ConverterOptions ¶
type GeneratorOption ¶
type GeneratorOption func(*GeneratorOptions) error
func WithTarget ¶ added in v0.0.8
func WithTarget(t string) GeneratorOption
type GeneratorOptions ¶
type NewConverter ¶ added in v0.0.8
type NewConverter[T any] interface { RunnerFactory[T, Converter] }
type NewGenerator ¶ added in v0.0.8
type NewGenerator[T any] interface { RunnerFactory[T, Generator] }
type RunnerFactory ¶ added in v0.0.12
Click to show internal directories.
Click to hide internal directories.