setting

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPLICATION_NAME = "Lanty"
	SETTINGS_PATH    = "settings.yaml"
	VERSION          = "v0.2.0"
	DEFAULT_USERNAME = "lanty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	ServerURL         string `yaml:"serverurl"`
	GameDirectory     string `yaml:"gamedirectory"`
	Username          string `yaml:"username"`
	DownloadDirectory string `yaml:"downloaddirectory"`
}

func LoadSettings

func LoadSettings() (s *Settings, err error)

func (Settings) Save

func (settings Settings) Save() (err error)

Jump to

Keyboard shortcuts

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