Documentation
¶
Index ¶
- func Apply[T Opt[V], V any](options *V, opts ...T)
- func Flat[T Opt[V], V any](opts ...T) T
- func PluginForTarget(target string) (string, error)
- func Unmarshal(v string, b []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 PluginForTarget ¶ added in v0.0.8
Types ¶
type ConverterOption ¶
type ConverterOption func(*ConverterOptions) error
func WithMimeType ¶
func WithMimeType(t string) ConverterOption
type ConverterOptions ¶
type ConverterOptions struct {
MimeType *string
}
type GeneratorOption ¶
type GeneratorOption func(*GeneratorOptions) error
func WithTarget ¶ added in v0.0.8
func WithTarget(t string) GeneratorOption
type GeneratorOptions ¶
type GeneratorOptions struct {
Target string
}
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.