File tree 5 files changed +30
-5
lines changed
5 files changed +30
-5
lines changed Original file line number Diff line number Diff line change
1
+ # If you prefer the allow list template instead of the deny list, see community template:
2
+ # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3
+ #
4
+ # Binaries for programs and plugins
5
+ * .exe
6
+ * .exe~
7
+ * .dll
8
+ * .so
9
+ * .dylib
10
+
11
+ # Test binary, built with `go test -c`
12
+ * .test
13
+
14
+ # Output of the go coverage tool, specifically when used with LiteIDE
15
+ * .out
16
+
17
+ # Dependency directories (remove the comment below to include it)
18
+ # vendor/
19
+
20
+ # Go workspace file
21
+ go.work
22
+ go.work.sum
23
+
24
+ # env file
25
+ .env
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var app App
13
13
14
14
func TestMain (m * testing.M ) {
15
15
16
- err := app .Initialize (DBUser , DBPass , "test_db" )
16
+ err := app .Initialize (DBUser , DBPass , DBName )
17
17
if err != nil {
18
18
log .Fatal ("Database Initializtion Error" )
19
19
}
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
- const DBName string = "inventory "
4
- const DBUser string = "root "
5
- const DBPass string = "deviant "
3
+ const DBName string = "test_db "
4
+ const DBUser string = "test_user "
5
+ const DBPass string = "test_pass "
Original file line number Diff line number Diff line change 1
- module example .com/project
1
+ module github .com/deviant101/REST-API
2
2
3
3
go 1.22.2
4
4
You can’t perform that action at this time.
0 commit comments