txtprovider

package
v0.0.0-...-ffea4ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyFilename error = errors.New("Filename is empty")
)

Functions

This section is empty.

Types

type TxtProvider

type TxtProvider struct {
	Filename  string
	Delimiter string
}

TxtProvider provides a map with all configuration settings set in a text file The prefix will be removed from the key name. Returns a map or error.

func (TxtProvider) Provide

func (t TxtProvider) Provide() (map[string]string, error)

Provide implements the Provider interface

func (TxtProvider) Save

func (t TxtProvider) Save(cfg *cfg.Config) error

Save will store the provided configuration

Jump to

Keyboard shortcuts

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