Skip to content

Commit 66fa9db

Browse files
author
Braulio Aguilar
committed
Update README.md
1 parent 5ed7de1 commit 66fa9db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ A middleware for request validation created with Go and Vault
88
* Run [Profile & Role Service](https://github.com/braulioinf/dummy_roles_profiles)
99
* Run [Account Microservice](https://github.com/ExponentialEducation/account-microservice)
1010

11-
## Install
11+
## Installation
1212

1313
`go get -u github.com/braulioinf/rbac`
1414

15-
## Example
15+
## Basic Usage
1616

1717
Middleware can be added to a router using `Router.Use()`:
1818

1919
```go
2020
// package main
2121

22+
import "github.com/braulioinf/rbac"
23+
2224
func main() {
2325
r := mux.NewRouter()
2426
r.HandleFunc("/v1/example", handlerFunc).Methods("POST")
@@ -45,3 +47,7 @@ func main() {
4547
}
4648
}
4749
```
50+
51+
## Full example
52+
53+
For more information [Example directory](https://github.com/braulioinf/rbac/tree/develop/example)

0 commit comments

Comments
 (0)