Documentation
¶
Overview ¶
Package settings reads and writes the file-backed settings a server declares in its profile. Edits are surgical: only the value of the declared key changes, and every other byte of the file, including comments, alignment and line endings, is left as it was.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFileMissing = errors.New("settings file not installed")
ErrFileMissing means the setting's file doesn't exist yet. The launcher never creates it: a missing file usually means its component hasn't been installed, and creating one could stop a "once" file ever arriving.
Functions ¶
func Read ¶
Read returns a file setting's current value in its typed form: bool, int or string. A key the file doesn't carry reports the setting's default.
func SetINIKeys ¶
SetINIKeys sets several keys in one section of an existing ini file, with the same surgical edits as Write. It is for launcher features such as d2gl box profiles, not for settings a server declares.
Types ¶
This section is empty.