Versions in this module Expand all Collapse all v0 v0.2.0 Nov 18, 2026 Changes in this version + type DepthContext = libyaml.DepthContext + type Option func(*Plugin) + func AliasFunc(fn func(aliasCount, constructCount int) error) Option + func AliasNone() Option + func AliasValue(n int) Option + func DepthFunc(fn func(depth int, ctx *DepthContext) error) Option + func DepthNone() Option + func DepthValue(n int) Option + type Plugin struct + func New(opts ...Option) *Plugin + func NewFromYAML(cfg map[string]any) (*Plugin, error) + func (p *Plugin) CheckAlias(aliasCount, constructCount int) error + func (p *Plugin) CheckDepth(depth int, ctx *DepthContext) error