parser

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(io.Reader, konfig.Values) error

Func is a function implementing the Parser interface

func (Func) Parse

func (f Func) Parse(r io.Reader, s konfig.Values) error

Parse implements Parser interface

type NopParser added in v0.7.0

type NopParser struct {
	Err error
}

NopParser is a nil parser, useful for unit test

func (NopParser) Parse added in v0.7.0

func (p NopParser) Parse(r io.Reader, s konfig.Values) error

Parse implements Parser interface

type Parser

type Parser interface {
	Parse(io.Reader, konfig.Values) error
}

Parser is the interface to implement to parse a config file

Directories

Path Synopsis
Package kpkeyval provides a key value parser to parse an io.Reader's content of key/values with a configurable separator and add it into a konfig.Store.
Package kpkeyval provides a key value parser to parse an io.Reader's content of key/values with a configurable separator and add it into a konfig.Store.

Jump to

Keyboard shortcuts

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