Skip to content

Commit 1c2531f

Browse files
committed
little modifications
1 parent ec9e8e8 commit 1c2531f

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

project renamed to REST-API

7.91 MB
Binary file not shown.

app_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var app App
1313

1414
func TestMain(m *testing.M) {
1515

16-
err := app.Initialize(DBUser, DBPass, "test_db")
16+
err := app.Initialize(DBUser, DBPass, DBName)
1717
if err != nil {
1818
log.Fatal("Database Initializtion Error")
1919
}

constants.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package main
22

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"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module example.com/project
1+
module github.com/deviant101/REST-API
22

33
go 1.22.2
44

0 commit comments

Comments
 (0)