Versions in this module Expand all Collapse all v0 v0.1.0 Sep 25, 2026 Changes in this version + const AliasNode + const ComposerStage + const ConstructorStage + const DepthKindBlock + const DepthKindFlow + const DocumentNode + const DoubleQuotedStyle + const EmitterStage + const EncodingAny + const EncodingUTF16BE + const EncodingUTF16LE + const EncodingUTF8 + const FlowStyle + const FoldedStyle + const IndentModeAuto + const IndentModeTabs + const IndentScopeDocument + const IndentScopeStream + const IndentStyleAuto + const IndentStyleSpaces + const IndentStyleTabs + const LineBreakCR + const LineBreakCRLN + const LineBreakLN + const LiteralStyle + const MappingNode + const ParserStage + const QuoteDouble + const QuoteLegacy + const QuoteSingle + const ReaderStage + const RepresenterStage + const ResolverStage + const ScalarNode + const ScannerStage + const SequenceNode + const SerializerStage + const SingleQuotedStyle + const StreamNode + const TaggedStyle + const WriterStage + var NewDumpError = libyaml.NewDumpError + var NewLoadError = libyaml.NewLoadError + var WithAllDocuments = libyaml.WithAllDocuments + var WithCanonical = libyaml.WithCanonical + var WithCompactSeqIndent = libyaml.WithCompactSeqIndent + var WithExplicitEnd = libyaml.WithExplicitEnd + var WithExplicitStart = libyaml.WithExplicitStart + var WithFlowSimpleCollections = libyaml.WithFlowSimpleCollections + var WithIndent = libyaml.WithIndent + var WithKnownFields = libyaml.WithKnownFields + var WithLineBreak = libyaml.WithLineBreak + var WithLineWidth = libyaml.WithLineWidth + var WithQuotePreference = libyaml.WithQuotePreference + var WithSingleDocument = libyaml.WithSingleDocument + var WithStreamNodes = libyaml.WithStreamNodes + var WithUnicode = libyaml.WithUnicode + var WithUniqueKeys = libyaml.WithUniqueKeys + func Dump(in any, opts ...Option) (out []byte, err error) + func Load(in []byte, out any, opts ...Option) error + func Marshal(in any) (out []byte, err error) + func RegisterPlugin(registration PluginRegistration) error + func Unmarshal(in []byte, out any) (err error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (dec *Decoder) Decode(v any) error + func (dec *Decoder) KnownFields(enable bool) + type DepthContext = libyaml.DepthContext + type DepthKind = libyaml.DepthKind + type DumpError = libyaml.DumpError + type Dumper struct + func NewDumper(w io.Writer, opts ...Option) (*Dumper, error) + func (d *Dumper) Close() error + func (d *Dumper) Dump(in any) error + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Close() error + func (e *Encoder) CompactSeqIndent() + func (e *Encoder) DefaultSeqIndent() + func (e *Encoder) Encode(v any) error + func (e *Encoder) SetIndent(spaces int) + type Encoding = libyaml.Encoding + type IndentConfig = libyaml.IndentConfig + type IndentMode = libyaml.IndentMode + type IndentScope = libyaml.IndentScope + type IndentStyle = libyaml.IndentStyle + type IsZeroer = libyaml.IsZeroer + type JSONCommentsPlugin = libyaml.JSONCommentsPlugin + type Kind = libyaml.Kind + type LimitPlugin interface + CheckAlias func(aliasCount, constructCount int) error + CheckDepth func(depth int, ctx *DepthContext) error + type LineBreak = libyaml.LineBreak + type LoadError = libyaml.LoadError + type LoadErrors = libyaml.LoadErrors + type Loader struct + func NewLoader(r io.Reader, opts ...Option) (*Loader, error) + func (l *Loader) Load(out any) error + type Mark = libyaml.Mark + type Marshaler = libyaml.Marshaler + type Node = libyaml.Node + type Option = libyaml.Option + func Options(opts ...Option) Option + func OptsYAML(yamlStr string) (Option, error) + func WithNamedPlugin(api string) Option + func WithPlugin(plugins ...any) Option + func WithV2Defaults() Option + func WithV3Defaults() Option + func WithV4Defaults() Option + type ParserPlugin = libyaml.ParserPlugin + type PluginEvent = libyaml.PluginEvent + type PluginFactory = pluginreg.Factory + type PluginRegistration = pluginreg.Registration + type QuoteStyle = libyaml.QuoteStyle + type Stage = libyaml.Stage + type Stream = libyaml.Stream + type Style = libyaml.Style + type TabIndentPlugin = libyaml.TabIndentPlugin + type TagDirective = libyaml.StreamTagDirective + type TypeError = libyaml.TypeError + type Unmarshaler = libyaml.Unmarshaler + type VersionDirective = libyaml.StreamVersionDirective