config

package
v0.0.0-...-f6bd952 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string) error

Create creates a configuration Item and add it to the config file.

func GetCurrentDataFilePath

func GetCurrentDataFilePath() (string, error)

GetCurrentDataFilePath returns the path to the current config items data file for use in budgeting.

func Show

func Show() error

func Use

func Use(name string) error

Use sets a given Config Item as current.

Types

type Config

type Config struct {
	Items []Item
}

func (Config) Print

func (c Config) Print() error

type Item

type Item struct {
	DataPath string
	Name     string
	Current  bool
}

func (Item) String

func (i Item) String() string

Jump to

Keyboard shortcuts

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