config

package
v0.0.0-...-d234511 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: GPL-3.0 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 {
	BotToken    string `split_words:"true"`
	PostgresDSN string `split_words:"true"`
}

Config represents the application configuration

func LoadFromEnv

func LoadFromEnv() (*Config, error)

LoadFromEnv loads the configuration using environment variables or/and a .env file

Jump to

Keyboard shortcuts

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