config

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvFileName = ".env"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// Account name
	Account string

	// Password
	Password string

	// Name for determining if an item is ordered
	Name string

	// How long before to inform user there is prompt items
	PriorTime time.Duration

	// How often to fetch latest data
	UpdateInterval time.Duration

	Debug bool
}

func LoadConfig

func LoadConfig(dir string) (*App, error)

Jump to

Keyboard shortcuts

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