Documentation
¶
Overview ¶
Package yamlgenerator provides YAML generation functionality for arbitrary models.
This package implements a generic Generator for any Go struct, providing flexible YAML serialization with support for custom marshalling options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Output string // Output file path; if empty, only returns YAML without writing
Force bool // Force overwrite existing files
}
Options defines options for YAML generators when emitting files.
type YAMLGenerator ¶
type YAMLGenerator[T any] struct { Marshaller marshaller.Marshaller[T] }
YAMLGenerator emits YAML for an arbitrary model using a provided marshaller.
func NewYAMLGenerator ¶
func NewYAMLGenerator[T any]() *YAMLGenerator[T]
NewYAMLGenerator creates a new YAMLGenerator instance.
Click to show internal directories.
Click to hide internal directories.