ffyaml

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package ffyaml provides a YAML config file paser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parser

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

Parser is a parser for YAML file format. Flags and their values are read from the key/value pairs defined in the config file.

Types

type ParseError

type ParseError struct {
	Inner error
}

ParseError wraps all errors originating from the YAML parser.

func (ParseError) Error

func (e ParseError) Error() string

Error implenents the error interface.

func (ParseError) Unwrap

func (e ParseError) Unwrap() error

Unwrap implements the xerrors.Wrapper interface, allowing xerrors.Is and xerrors.As to work with ParseErrors.

Jump to

Keyboard shortcuts

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