yaml

package
v0.6.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyCopyright   string = "copyright"
	KeyName        string = "name"
	KeyDescription string = "description"
	KeyAuthor      string = "author"
	KeyEvents      string = "events"
	KeyStructs     string = "structs"
	KeyTypedefs    string = "typedefs"
	KeyState       string = "state"
	KeyFuncs       string = "funcs"
	KeyViews       string = "views"
	KeyAccess      string = "access"
	KeyParams      string = "params"
	KeyResults     string = "results"
)

Variables

This section is empty.

Functions

func Convert

func Convert(root *Node, def *model.SchemaDef) error

func Unmarshal

func Unmarshal(in []byte, def *model.SchemaDef) error

Types

type Node

type Node struct {
	Val         string  `json:"val"`
	Line        int     `json:"line"`
	HeadComment string  `json:"head_comment"`
	LineComment string  `json:"line_comment"`
	Contents    []*Node `json:"contents"`
}

func Parse

func Parse(in []byte) *Node

func (*Node) String

func (n *Node) String() string

func (*Node) ToDefElt

func (n *Node) ToDefElt() *model.DefElt

func (*Node) ToDefMap

func (n *Node) ToDefMap() model.DefMap

func (*Node) ToDefMapMap

func (n *Node) ToDefMapMap() model.DefMapMap

func (*Node) ToFuncDef

func (n *Node) ToFuncDef() model.FuncDef

func (*Node) ToFuncDefMap

func (n *Node) ToFuncDefMap() model.FuncDefMap

Jump to

Keyboard shortcuts

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