config

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User                  string `yaml:"user"`
	SteamRoot             string `yaml:"steam_root"`
	EnableViewedSteamPlay bool   `yaml:"enable_viewed_steam_play"`
	// contains filtered or unexported fields
}

Config represents YAML config file structure

func New

func New() (*Config, error)

New instantiates and loads config from file

func (*Config) Load

func (cfg *Config) Load() error

Load loads cfg values from file

func (*Config) Save

func (cfg *Config) Save() error

Save saves cfg values into file

func (*Config) String

func (cfg *Config) String() string

String returns YAML serialization of cfg

Jump to

Keyboard shortcuts

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