diff options
author | Blaster4385 <blaster4385@tablaster.dev> | 2024-03-03 19:02:40 +0530 |
---|---|---|
committer | Blaster4385 <blaster4385@tablaster.dev> | 2024-04-30 11:10:37 +0530 |
commit | 5e7629a055e8568a0775436b1dbf5797a5640056 (patch) | |
tree | 7e21589964ce696fba683151ec65e36a2bcd32d0 /server | |
parent | 641909aa31b2683b89fe62a219f7d5f56fbad934 (diff) |
feat: formated code
Diffstat (limited to 'server')
-rw-r--r-- | server/main.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/server/main.go b/server/main.go index 4737f17..a48611f 100644 --- a/server/main.go +++ b/server/main.go @@ -1,16 +1,17 @@ package main import ( + "database/sql" "embed" "flag" - "github.com/labstack/echo/v4" - "github.com/labstack/echo/v4/middleware" - "database/sql" "log" "math/rand" "net/http" "time" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" + _ "github.com/mattn/go-sqlite3" ) @@ -35,9 +36,9 @@ var ( func RegisterHandlers(e *echo.Echo) { e.Use(middleware.StaticWithConfig(middleware.StaticConfig{ - Skipper: nil, - Root: "dist", - Index: "index.html", + Skipper: nil, + Root: "dist", + Index: "index.html", HTML5: true, Filesystem: http.FS(dist), })) @@ -119,4 +120,4 @@ func generateShortID() string { id[i] = shortIDCharset[rand.Intn(len(shortIDCharset))] } return string(id) -}
\ No newline at end of file +} |