From 8187f8db90c5d301f9a8304fc954588167833695 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Tue, 27 Apr 2021 21:32:25 +0530 Subject: created a package to talk with a database but it only prints hello... --- server/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/main.go') diff --git a/server/main.go b/server/main.go index 544f292..5eab33c 100644 --- a/server/main.go +++ b/server/main.go @@ -15,6 +15,9 @@ import ( "net/http" "github.com/gin-gonic/gin" "github.com/gin-gonic/contrib/static" + + // this handles all the database functions + db "github.com/MikunoNaka/openbills/database" ) type Item struct { @@ -25,6 +28,7 @@ type Item struct { } func main() { + db.SayHello() myRouter := gin.New() myRouter.Use(gin.Logger()) -- cgit v1.2.3