diff --git a/Makefile b/Makefile index 36cd5ef..a3ab494 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ linter: golangci-lint run test: security - go test -cover ./... + go test -v -timeout 30s -coverprofile=cover.out -cover ./... + go tool cover -func=cover.out build: clean test CGO_ENABLED=0 go build -ldflags="-w -s" -o $(BUILD_DIR)/$(APP_NAME) main.go diff --git a/README.md b/README.md index ed30565..cbce74a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ cgapp create make docker.run ``` -5. Go to API Docs page (Swagger): [0.0.0.0:5000/swagger/index.html](http://0.0.0.0:5000/swagger/index.html) +5. Go to API Docs page (Swagger): [127.0.0.1:5000/swagger/index.html](http://127.0.0.1:5000/swagger/index.html) ![Screenshot](https://user-images.githubusercontent.com/11155743/112716623-76bc0800-8ef8-11eb-80db-48edcbdacf36.png) @@ -39,17 +39,17 @@ make docker.run | Name | Version | Type | | --------------------------------------------------------------------- | --------- | ---------- | -| [net/http](https://golang.org/pkg/net/http/) | `v1.16.2` | core | +| [net/http](https://golang.org/pkg/net/http/) | `v1.16.4` | core | | [auth0/go-jwt-middleware](https://github.com/auth0/go-jwt-middleware) | `v1.0.0` | middleware | | [swaggo/http-swagger](https://github.com/swaggo/http-swagger) | `v1.0.0` | middleware | | [stretchr/testify](https://github.com/stretchr/testify) | `v1.7.0` | tests | | [dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go) | `v3.2.0` | auth | | [joho/godotenv](https://github.com/joho/godotenv) | `v1.3.0` | config | -| [jmoiron/sqlx](https://github.com/jmoiron/sqlx) | `v1.3.3` | database | +| [jmoiron/sqlx](https://github.com/jmoiron/sqlx) | `v1.3.4` | database | | [jackc/pgx](https://github.com/jackc/pgx) | `v4.11.0` | database | | [swaggo/swag](https://github.com/swaggo/swag) | `v1.7.0` | utils | | [google/uuid](https://github.com/google/uuid) | `v1.2.0` | utils | -| [go-playground/validator](https://github.com/go-playground/validator) | `v10.6.0` | utils | +| [go-playground/validator](https://github.com/go-playground/validator) | `v10.6.1` | utils | ## 🗄 Template structure diff --git a/go.mod b/go.mod index b30d974..8d7df04 100644 --- a/go.mod +++ b/go.mod @@ -6,11 +6,11 @@ require ( github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 github.com/auth0/go-jwt-middleware v1.0.0 github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/go-playground/validator/v10 v10.6.0 + github.com/go-playground/validator/v10 v10.6.1 github.com/google/uuid v1.2.0 github.com/gorilla/mux v1.8.0 github.com/jackc/pgx/v4 v4.11.0 - github.com/jmoiron/sqlx v1.3.3 + github.com/jmoiron/sqlx v1.3.4 github.com/joho/godotenv v1.3.0 github.com/swaggo/http-swagger v1.0.0 github.com/swaggo/swag v1.7.0 diff --git a/go.sum b/go.sum index eb8a33c..d1e3530 100644 --- a/go.sum +++ b/go.sum @@ -101,8 +101,8 @@ github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8c github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/validator/v10 v10.6.0 h1:UGIt4xR++fD9QrBOoo/ascJfGe3AGHEB9s6COnss4Rk= -github.com/go-playground/validator/v10 v10.6.0/go.mod h1:xm76BBt941f7yWdGnI2DVPFFg1UK3YY04qifoXU3lOk= +github.com/go-playground/validator/v10 v10.6.1 h1:W6TRDXt4WcWp4c4nf/G+6BkGdhiIo0k417gfr+V6u4I= +github.com/go-playground/validator/v10 v10.6.1/go.mod h1:xm76BBt941f7yWdGnI2DVPFFg1UK3YY04qifoXU3lOk= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -221,8 +221,8 @@ github.com/jackc/puddle v1.1.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dv github.com/jackc/puddle v1.1.1/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmoiron/sqlx v1.3.3 h1:j82X0bf7oQ27XeqxicSZsTU5suPwKElg3oyxNn43iTk= -github.com/jmoiron/sqlx v1.3.3/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ= +github.com/jmoiron/sqlx v1.3.4 h1:wv+0IJZfL5z0uZoUjlpKgHkgaFSYD+r9CfrXjEXsO7w= +github.com/jmoiron/sqlx v1.3.4/go.mod h1:2BljVx/86SuTyjE+aPYlHCTNvZrnJXghYGpNiXLBMCQ= github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=