ffyaml

package
v4.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package ffyaml provides a YAML config file parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader, set func(name, value string) error) error

Parse is a helper function that uses a default parser.

Types

type Parser

type Parser struct {
	// Delimiter is used when concatenating nested node keys into a flag name.
	// The default delimiter is ".".
	Delimiter string
}

Parser collects parameters for the YAML config file parser.

func (Parser) Parse

func (p Parser) Parse(r io.Reader, set func(name, value string) error) error

Parse a YAML document from the provided io.Reader, using the provided set function to set flag values. Flag names are derived from the node names and their key/value pairs.

Jump to

Keyboard shortcuts

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