config

package
v0.0.0-...-a7177cb Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRoot

func SetRoot(s string)

func Unmarshal

func Unmarshal(filename string, v any) error

Unmarshal unmarshals the given file into v. It accepts yaml files.

Types

type AuthConfig

type AuthConfig struct {
	Token    string `yaml:"token"`
	Database string `yaml:"database"`
}

type Config

type Config struct {
	Auth    AuthConfig    `yaml:"auth"`
	Discord DiscordConfig `yaml:"discord"`
}

type DiscordConfig

type DiscordConfig struct {
	OverwriteCommands bool            `yaml:"overwrite_commands"`
	CommandsGuild     discord.GuildID `yaml:"commands_guild"`
}

Jump to

Keyboard shortcuts

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