yaml

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(ctx context.Context, obj interface{}, paths ...string) (string, error)

Marshal converts an object to a string in a YAML format and transforms the byte slice fields from the path to string to be more readable.

Types

type Map added in v0.25.0

type Map map[string]interface{}

Map defines a map type that uses strings as key value. The map implements the Unmarshaller interface to convert the unmershalled map keys type from interface{} to string.

func (*Map) UnmarshalYAML added in v0.25.0

func (m *Map) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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