yaml

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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

Jump to

Keyboard shortcuts

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