config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvFile []byte

Functions

This section is empty.

Types

type Config

type Config struct {
	Prefix       string `json:"prefix"`
	DiscordToken string `json:"discord_token"`
	Endpoint     string `json:"endpoint"`
	PunchApiPath string `json:"punch_api_path"`
	LoginApiPath string `json:"login_api_path"`
}

func GetEnv

func GetEnv() *Config

func New

func New() *Config

New init env, this function will load .env file at first if exist it will load environment variable APP_ENV is required, if not set, it will panic .env file is for local development, environment variable is for production

Jump to

Keyboard shortcuts

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