yaml

package
v0.0.0-...-98ba599 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultParser = &Parser{}

Functions

func Marshal

func Marshal(in interface{}) ([]byte, error)

Marshal YAML wrapper function.

func Parse

func Parse(r io.Reader) (*types.WorkflowSpec, error)

func Unmarshal

func Unmarshal(in []byte, out interface{}) error

Unmarshal YAML to map[string]interface{} instead of map[interface{}]interface{}.

Types

type Parser

type Parser struct{}

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) (*types.WorkflowSpec, error)

Jump to

Keyboard shortcuts

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