config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "v1.3.1"

Variables

View Source
var Conf, _ = GetConfig()

Functions

func CreateConfigIfNotExists added in v1.3.0

func CreateConfigIfNotExists() [2]error

func GetConfigPath

func GetConfigPath() (string, error)

func GetConfigPathGame

func GetConfigPathGame() (string, error)

func GetConfigPathMain added in v1.2.0

func GetConfigPathMain() (string, error)

func SaveConfig added in v1.2.0

func SaveConfig(c *Config) error

Types

type Config added in v1.2.0

type Config struct {
	Paths struct{ Main, Games string } // The paths to the config files
	Main  main
	Games map[string]string // The paths to the games
}
var DefaultConfig *Config

func GetConfig added in v1.2.0

func GetConfig() (*Config, error)

Reads and unmarshals the stored config.

func GetConfigDefault added in v1.2.0

func GetConfigDefault() *Config

The default config settings.

Version as given in config/config.go FileReadBuffer = 512

Jump to

Keyboard shortcuts

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