config

package
v0.0.0-...-0fe142e Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(path string, c *Config) error

Creates a new config instance, reading from yaml file

func ValidateConfigPath

func ValidateConfigPath(path string) error

ValidateConfigPath just makes sure, that the path provided is a file, that can be read

Types

type Config

type Config struct {
	DiscordToken string `yaml:"discord_token"`
	YoutubeKey   string `yaml:"youtube_key"`
}

func (Config) NewYt

func (c Config) NewYt() (*youtube.Service, error)

Jump to

Keyboard shortcuts

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