Skip to content

Commit

Permalink
[README] Add badge & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
danysousa committed Nov 24, 2022
1 parent f092bf6 commit 3dc2c66
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# GAPI Addons

-----
A repo with a list of additional packages to improve GAPI features :

A repo with a list of additional packages to improve GAPI features
| Description | Doc |
|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Auth middleware for GCloud | [![PkgGoDev](https://pkg.go.dev/badge/github.com/mwm-io/gapi-addons/middleware/auth)](https://pkg.go.dev/github.com/mwm-io/gapi-addons/middleware/auth) |

## How it works

-----
## How it works

First choose your package(s) and add it using go modules, here is an example for [auth.GCloudServiceAccount](https://pkg.go.dev/github.com/mwm-io/gapi-addons/gcloud/middleware/auth#GCloudServiceAccount):
```sh
$ get get github.com/mwm-io/gapi-addons/gcloud/middleware/auth@latest
$ go get github.com/mwm-io/gapi-addons/gcloud/middleware/auth@latest
```

The use it in you code:
Expand All @@ -27,6 +28,7 @@ type myHandler struct {
handler.WithMiddlewares
}

// NewHandler is your handler factory
func NewHandler() handler.Handler {
var h myHandler

Expand Down

0 comments on commit 3dc2c66

Please sign in to comment.