This commit is contained in:
2023-03-09 09:13:07 +08:00
parent 2abd3eccb2
commit 7f54a3c394
7 changed files with 18 additions and 2 deletions
+11
View File
@@ -2,10 +2,21 @@ package main
import (
"flag"
"log"
"os"
"strconv"
"github.com/joho/godotenv"
)
func main() {
err := godotenv.Load(".env")
if err != nil {
log.Fatal("Error loading .env file")
os.Exit(1)
}
r := Router()
r.LoadHTMLGlob("tmpl/*")
r.Static("/statics", "./statics")