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