Skip to content

Commit 279a5e4

Browse files
committed
Add gitignore
1 parent 4ad2876 commit 279a5e4

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, build with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
# Application binary
15+
vibes-api
16+
17+
# build output
18+
build
19+
20+
.vscode/settings.json
21+
22+
.idea/workspace.xml
23+
.idea/libraries
24+
.idea/caches/
25+
26+
# Environment files
27+
.env

server.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
package main
22

33
import (
4+
"fmt"
5+
46
"github.com/eldimious/golang-api-showcase/config"
57
postgres "github.com/eldimious/golang-api-showcase/data/database"
68
)
79

810
func main() {
9-
configuration := config.NewConfig()
11+
configuration, err := config.NewConfig()
1012
if err != nil {
1113
panic(err)
1214
}
15+
1316
postgres, err := postgres.Open(configuration.Postgres)
1417
if err != nil {
1518
panic(err)
1619
}
20+
fmt.Println(postgres)
1721
}

0 commit comments

Comments
 (0)