config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FileExt = ".png"

Variables

View Source
var Discord = discord{
	EmbedColor: "1127128",
}
View Source
var Version = "dev"

Functions

func TomlParse

func TomlParse(configPath string) error

Parse Toml config

Types

type Config

type Config struct {
	Path    string
	Imgur   ConfigImgur
	Discord ConfigDiscord
}

Toml config struct

var Toml Config

type ConfigDiscord

type ConfigDiscord struct {
	Webhook string
}

type ConfigImgur

type ConfigImgur struct {
	Id     string
	Secret string
	Album  string
}

Jump to

Keyboard shortcuts

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