config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFolder = ".gott"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserDataLocation string
}

Config is a base struct with configuration options for the application.

func NewConfig

func NewConfig() Config

NewConfig returns a new app configuration.

func (*Config) AlreadySetup

func (config *Config) AlreadySetup() bool

AlreadySetup returns true if the app has already been setup

func (*Config) DeleteConfig

func (config *Config) DeleteConfig() error

DeleteConfig deletes the current config folder

func (*Config) Setup

func (config *Config) Setup() error

Setup tries to setup the app, otherwise returns an error

Jump to

Keyboard shortcuts

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