config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingItem = errors.New("missing field")

Functions

func CreateConfig

func CreateConfig() string

func WriteConfig

func WriteConfig(cfg string) error

Types

type Config

type Config struct {
	GamePath string `json:"GamePath"`
	MainMode bool   `json:"MainMode"`
}
var Data Config

func ConfigCopy

func ConfigCopy(orig *Config) (*Config, error)

func LoadConfig

func LoadConfig() Config

Jump to

Keyboard shortcuts

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