File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ linter:
15
15
golangci-lint run
16
16
17
17
test : security
18
- go test -cover ./...
18
+ go test -v -timeout 30s -coverprofile=cover.out -cover ./...
19
+ go tool cover -func=cover.out
19
20
20
21
build : clean test
21
22
CGO_ENABLED=0 go build -ldflags=" -w -s" -o $(BUILD_DIR ) /$(APP_NAME ) main.go
Original file line number Diff line number Diff line change @@ -31,25 +31,25 @@ cgapp create
31
31
make docker.run
32
32
```
33
33
34
- 5 . Go to API Docs page (Swagger): [ 0 .0.0.0 :5000/swagger/index.html] ( http://0 .0.0.0 :5000/swagger/index.html )
34
+ 5 . Go to API Docs page (Swagger): [ 127 .0.0.1 :5000/swagger/index.html] ( http://127 .0.0.1 :5000/swagger/index.html )
35
35
36
36
![ Screenshot] ( https://user-images.githubusercontent.com/11155743/112716623-76bc0800-8ef8-11eb-80db-48edcbdacf36.png )
37
37
38
38
## 📦 Used packages
39
39
40
40
| Name | Version | Type |
41
41
| --------------------------------------------------------------------- | --------- | ---------- |
42
- | [ net/http] ( https://golang.org/pkg/net/http/ ) | ` v1.16.2 ` | core |
42
+ | [ net/http] ( https://golang.org/pkg/net/http/ ) | ` v1.16.4 ` | core |
43
43
| [ auth0/go-jwt-middleware] ( https://github.com/auth0/go-jwt-middleware ) | ` v1.0.0 ` | middleware |
44
44
| [ swaggo/http-swagger] ( https://github.com/swaggo/http-swagger ) | ` v1.0.0 ` | middleware |
45
45
| [ stretchr/testify] ( https://github.com/stretchr/testify ) | ` v1.7.0 ` | tests |
46
46
| [ dgrijalva/jwt-go] ( https://github.com/dgrijalva/jwt-go ) | ` v3.2.0 ` | auth |
47
47
| [ joho/godotenv] ( https://github.com/joho/godotenv ) | ` v1.3.0 ` | config |
48
- | [ jmoiron/sqlx] ( https://github.com/jmoiron/sqlx ) | ` v1.3.3 ` | database |
48
+ | [ jmoiron/sqlx] ( https://github.com/jmoiron/sqlx ) | ` v1.3.4 ` | database |
49
49
| [ jackc/pgx] ( https://github.com/jackc/pgx ) | ` v4.11.0 ` | database |
50
50
| [ swaggo/swag] ( https://github.com/swaggo/swag ) | ` v1.7.0 ` | utils |
51
51
| [ google/uuid] ( https://github.com/google/uuid ) | ` v1.2.0 ` | utils |
52
- | [ go-playground/validator] ( https://github.com/go-playground/validator ) | ` v10.6.0 ` | utils |
52
+ | [ go-playground/validator] ( https://github.com/go-playground/validator ) | ` v10.6.1 ` | utils |
53
53
54
54
## 🗄 Template structure
55
55
You can’t perform that action at this time.
0 commit comments