yaml

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingYAML

type EncodingYAML struct {
}

EncodingYAML implements the Encoding interface for the YAML encoding

func NewEncodingYAML

func NewEncodingYAML() *EncodingYAML

NewEncodingYAML creates a new EncodingYAML instance.

func (*EncodingYAML) Marshal

func (e *EncodingYAML) Marshal(v interface{}) ([]byte, error)

Marshal converts the given value to YAML byte

func (*EncodingYAML) Unmarshal

func (e *EncodingYAML) Unmarshal(b []byte, v interface{}) error

Unmarshal converts the given YAML byte to value

func (*EncodingYAML) UnmarshalToMap

func (e *EncodingYAML) UnmarshalToMap(b []byte) (map[string]interface{}, error)

UnmarshalToMap converts the json string to a map

Jump to

Keyboard shortcuts

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