Discover Packages
github.com/yimincai/gopunch
internal
config
package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Apr 11, 2024
License: MIT
Opens a new window with license information.
Imports: 5
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 `json:"prefix"`
DiscordToken string `json:"discord_token"`
Endpoint string `json:"endpoint"`
PunchApiPath string `json:"punch_api_path"`
LoginApiPath string `json:"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.