You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
428 B

package config
import (
"os"
"github.com/joho/godotenv"
)
type ConfigEntries struct {
SlackAuthToken string
SlackAppToken string
ActionScript1 string
ActionScript2 string
}
var Config ConfigEntries
func init(){
// fmt.Println("init de config!")
// Load Env variables from .dot file
godotenv.Load(".env")
Config.SlackAuthToken = os.Getenv("SLACK_AUTH_TOKEN")
Config.SlackAppToken = os.Getenv("SLACK_APP_TOKEN")
}