Documentation ¶
Overview ¶
Package config defines Config interface and generate method.
Index ¶
Constants ¶
View Source
const ( // Timeout is the max execution time of external command. Timeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { // Engines is a map of engine name and engine executable path pairs. // This map must not be empty. If empty, panics when called New method. // // The key is the name of shogi engine. Any string is OK to use. // The value is the path of shogi engine. // It must be executable, and work with USI protocol. // // TODO: write document about USI protocol Engines map[string]string `yaml:"engines"` // Keys of Engines EngineNames []string `yaml:"engineNames"` }
App is configuration of application
Click to show internal directories.
Click to hide internal directories.