diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-27 21:32:25 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-04-27 21:32:25 +0530 |
commit | 8187f8db90c5d301f9a8304fc954588167833695 (patch) | |
tree | a61a1331610c267c61243bd334277d3b05508c13 /server/main.go | |
parent | 3899d8c17dc5eb1dc0d03e6f25d29bda2878a5ff (diff) |
created a package to talk with a database but it only prints hello...
Diffstat (limited to 'server/main.go')
-rw-r--r-- | server/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
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()) |