config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Validate() error
}

type Option

type Option = func(*Reader)

func WithDefaults

func WithDefaults(defaults string) Option

func WithExplicitPath

func WithExplicitPath(path string) Option

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func New

func New(filename string, opts ...Option) *Reader

func (*Reader) Read

func (r *Reader) Read(cfg Config) error

Jump to

Keyboard shortcuts

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