yaml

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

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

Marshal marshals the given config map to YAML bytes.

func (*YAML) Unmarshal

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