Initial release

This commit is contained in:
2021-12-16 10:08:34 +01:00
commit bc3ec64b3c
17 changed files with 684 additions and 0 deletions

24
config/config.go Normal file
View File

@@ -0,0 +1,24 @@
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")
}