File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
+ "fmt"
5
+
4
6
"github.com/eldimious/golang-api-showcase/config"
5
7
postgres "github.com/eldimious/golang-api-showcase/data/database"
6
8
)
7
9
8
10
func main () {
9
- configuration := config .NewConfig ()
11
+ configuration , err := config .NewConfig ()
10
12
if err != nil {
11
13
panic (err )
12
14
}
15
+
13
16
postgres , err := postgres .Open (configuration .Postgres )
14
17
if err != nil {
15
18
panic (err )
16
19
}
20
+ fmt .Println (postgres )
17
21
}
You can’t perform that action at this time.
0 commit comments