yaml

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 1 Imported by: 479

Documentation

Overview

Package yaml implements a koanf.Parser that parses YAML bytes as conf maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAML

type YAML struct{}

YAML implements a YAML parser.

func Parser

func Parser() *YAML

Parser returns a YAML Parser.

func (*YAML) Marshal added in v0.9.0

func (p *YAML) Marshal(o map[string]interface{}) ([]byte, error)

Marshal marshals the given config map to YAML bytes.

func (*YAML) Unmarshal added in v0.9.0

func (p *YAML) Unmarshal(b []byte) (map[string]interface{}, error)

Unmarshal parses the given YAML bytes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳