yaml

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(raw []byte, v interface{}) error

Decode decodes the YAML-encoded data and stores the result in the value pointed to by v.

Static Method

func Encode

func Encode(v interface{}) ([]byte, error)

Encode returns the YAML encoding of the data.

Static Method

Types

type YAML

type YAML struct {
}

func New

func New() *YAML

func (*YAML) Decode

func (j *YAML) Decode(raw []byte, v interface{}) error

Decode decodes the YAML-encoded data and stores the result in the value pointed to by v.

func (*YAML) Encode

func (j *YAML) Encode(v interface{}) ([]byte, error)

Encode returns the YAML encoding of the data.

Jump to

Keyboard shortcuts

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