compile

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileError

type CompileError struct {
	Path    []string
	Message error
}

func (CompileError) Error

func (c CompileError) Error() string

type CompileErrors

type CompileErrors []CompileError

func Compile

func Compile(sourceName string, root interface{}) (yaml.Node, CompileErrors)

func (*CompileErrors) Add

func (c *CompileErrors) Add(path []string, err error)

func (*CompileErrors) Append

func (c *CompileErrors) Append(errs CompileErrors)

func (CompileErrors) Error

func (c CompileErrors) Error() string

func (CompileErrors) Len

func (c CompileErrors) Len() int

Len is the number of elements in the collection.

func (CompileErrors) Less

func (c CompileErrors) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (CompileErrors) Swap

func (c CompileErrors) Swap(i, j int)

Swap swaps the elements with indexes i and j.

Jump to

Keyboard shortcuts

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