macro

package
v0.0.0-...-e3166bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMacros

func DefaultMacros() (macros map[string]Macro)

func ProcessDocuments

func ProcessDocuments(context *Context, documents *[]*yaml.Node) error

func ProcessNode

func ProcessNode(context *Context, node *yaml.Node) error

func Unwrap

func Unwrap(context *Context, node *yaml.Node) error

func Void

func Void(context *Context, node *yaml.Node) error

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func DefaultRootContext

func DefaultRootContext() *Context

func (*Context) Error

func (c *Context) Error(node *yaml.Node, msg string) error

func (*Context) New

func (c *Context) New(label string) *Context

func (*Context) Path

func (c *Context) Path() string

type Macro

type Macro func(*Context, *yaml.Node) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL