configuration

package
v0.0.0-...-90d526b Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigurationFilename = ".config/go-chess-xfcc/go-chess-xfcc.xml"

DefaultConfigurationFilename defines the default configuration file name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	User     string   `xml:"user"`
	Password string   `xml:"password"`
	XMLName  xml.Name `xml:"configuration"`
}

Configuration is simple configuration for the username and the password.

func GetConfiguration

func GetConfiguration() (Configuration, error)

GetConfiguration returns the configuration from the default location.

func (*Configuration) Load

func (c *Configuration) Load(filename string) error

Load loads the configuration from an XML file

Jump to

Keyboard shortcuts

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