Documentation ¶
Overview ¶
Package config provides goconfigure compatible configuration blocks for a discordance bot.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discord ¶
Discord configuration block.
func (*Discord) Data ¶
func (d *Discord) Data() interface{}
Data for the configuration block.
Example ¶
package main import ( "fmt" "bitbucket.org/idomdavis/discordance/config" ) func main() { d := &config.Discord{} fmt.Println(d.Data()) }
Output: {UNSET }
func (*Discord) Description ¶
Description for the configuration block.
Example ¶
package main import ( "fmt" "bitbucket.org/idomdavis/discordance/config" ) func main() { d := &config.Discord{} fmt.Println(d.Description()) }
Output: Discord Settings
func (*Discord) Register ¶
func (d *Discord) Register(opts goconfigure.OptionSet)
Register the configuration block.
Click to show internal directories.
Click to hide internal directories.