config

package
v1.6.1-0...-e0dc824 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv() error

LoadEnv loads environment variables from .env file and creates it if it doesn't exist

func ValidateEnv

func ValidateEnv() error

ValidateEnv validates all environment variables needed for the bot to work

Types

type IncorrectEnvVariableError

type IncorrectEnvVariableError struct {
	EnvVariable string
}

IncorrectEnvVariableError is an error that is returned when an environment variable has an incorrect value

func (*IncorrectEnvVariableError) Error

func (e *IncorrectEnvVariableError) Error() string

Jump to

Keyboard shortcuts

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