fftoml

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package fftoml provides a TOML 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 TOML 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 TOML 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