config

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConfigFileName = "config.json"

Variables

This section is empty.

Functions

func InitializeConfig

func InitializeConfig(basePath string) error

InitializeConfig creates a new configuration file with default settings.

func SaveConfig

func SaveConfig(configPath string, config *Config) error

SaveConfig writes the configuration to the file.

Types

type Config

type Config struct {
	LastUsedProfile      string `json:"last_used_profile"`
	CachedBepInExVersion string `json:"cached_bepinex_version"`
	OtherProfilesCloned  bool   `json:"other_profiles_cloned"`
}

Please don't the config values from inside the package. It's supposed to be used by the main package.

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

LoadConfig reads the configuration from the file.

Jump to

Keyboard shortcuts

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