Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomenjr authored Apr 29, 2022
1 parent 61a1b50 commit 66e04f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ You can register paths and handlers directly:
// main.go

func main() {
h := handlr.New()
h := handlr.New()

h.Handler("/feed", feedHandler)

h.Handler("/feed", feedHandler)
r.Start(1993)
}

func feedHandler(w http.ResponseWriter, r *http.Request) {
Expand All @@ -55,6 +57,8 @@ func main() {

h.Route("/feed", feedRoute)
h.Route("/account", accountRoute)

r.Start(1993)
}
```

Expand Down Expand Up @@ -100,4 +104,4 @@ func accountSettingsHandlr(w http.ResponseWriter, r *http.Request) {
---

## License
The source code of this project is under [MIT License](https://opensource.org/licenses/MIT).
The source code of this project is under [MIT License](https://opensource.org/licenses/MIT).

0 comments on commit 66e04f3

Please sign in to comment.