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
Click to show internal directories.
Click to hide internal directories.