Skip to content

Commit d9a43ac

Browse files
author
Julien Kernec'h
committed
Use dep as dependency manager
1 parent 0522ba5 commit d9a43ac

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

Gopkg.lock

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
# Gopkg.toml example
3+
#
4+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
5+
# for detailed Gopkg.toml documentation.
6+
#
7+
# required = ["github.com/user/thing/cmd/thing"]
8+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
9+
#
10+
# [[constraint]]
11+
# name = "github.com/user/project"
12+
# version = "1.0.0"
13+
#
14+
# [[constraint]]
15+
# name = "github.com/user/project2"
16+
# branch = "dev"
17+
# source = "github.com/myfork/project2"
18+
#
19+
# [[override]]
20+
# name = "github.com/x/y"
21+
# version = "2.4.0"
22+
23+
24+
[[constraint]]
25+
name = "github.com/gin-gonic/gin"
26+
version = "1.2.0"
27+
28+
[[constraint]]
29+
name = "github.com/joho/godotenv"
30+
version = "1.1.0"

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
build:
3+
@dep ensure
34
@go build ./...
45

56
run:
67
@go run main.go
78

89
test:
10+
@dep ensure
911
@go test -cover ./...

0 commit comments

Comments
 (0)