config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 1 Imported by: 1

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

type Discord struct {
	Token  string
	Server string
}

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

func (d *Discord) Description() string

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.

Jump to

Keyboard shortcuts

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