config

package
v0.0.0-...-5ecf58d Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	//Telegram stuff
	TelegramTokenBot string
	ChatID           int64

	//List of subreddits
	Sources []string

	//Video related config
	VideoDownload bool
	DownloadPath  string
}

Config is the bot configuration representation, read from a configuration file.

func ReadConfig

func ReadConfig(path string) (Config, error)

ReadConfig loads the values from the config file

Jump to

Keyboard shortcuts

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