diff --git a/README.md b/README.md index a573caa..55a81da 100644 --- a/README.md +++ b/README.md @@ -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: @@ -27,6 +28,7 @@ type myHandler struct { handler.WithMiddlewares } +// NewHandler is your handler factory func NewHandler() handler.Handler { var h myHandler