Discover Packages
github.com/yimincai/gopunch
internal
config
package
Version:
v1.1.3
Opens a new window with list of versions in this module.
Published: Apr 29, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Prefix string `mapstructure:"PREFIX"`
DiscordToken string `mapstructure:"DISCORD_TOKEN"`
Endpoint string `mapstructure:"ENDPOINT"`
PunchApiPath string `mapstructure:"PUNCH_API_PATH"`
LoginApiPath string `mapstructure:"LOGIN_API_PATH"`
}
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.