yaml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderWriter

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

ReaderWriter reads and writes yaml files.

func NewReaderWriter

func NewReaderWriter() *ReaderWriter

NewReaderWriter creates a new instance of the YAML reader/writer.

func (*ReaderWriter) ReadYaml

func (c *ReaderWriter) ReadYaml(filename string) (map[string]interface{}, error)

ReadYaml reads a YAML file and deserializes it.

func (*ReaderWriter) WriteYaml

func (c *ReaderWriter) WriteYaml(filename string, yamlObj map[string]interface{}) error

WriteYaml serializes a YAML object and writes it to a file.

Jump to

Keyboard shortcuts

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