Files
backend/config/config.go
2021-12-16 10:08:34 +01:00

25 lines
292 B
Go

package config
import (
"github.com/joho/godotenv"
"os"
)
var (
ArticleRoot string
ServerPort string
DatabaseFile string
)
func init() {
godotenv.Load()
ArticleRoot = os.Getenv("ARTICLE_ROOT")
ServerPort = os.Getenv("SERVER_PORT")
DatabaseFile = os.Getenv("DATABASE_FILE")
}