3 changed files with 32 additions and 11 deletions
@ -0,0 +1,24 @@ |
|||
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") |
|||
} |
|||
Loading…
Reference in new issue