From 66e04f374f047fcecacec46caf1a2ff74d645925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Menj=C3=ADvar?= Date: Thu, 28 Apr 2022 23:46:04 -0700 Subject: [PATCH] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bbb49c1..03db698 100644 --- a/README.md +++ b/README.md @@ -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) { @@ -55,6 +57,8 @@ func main() { h.Route("/feed", feedRoute) h.Route("/account", accountRoute) + + r.Start(1993) } ``` @@ -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). \ No newline at end of file +The source code of this project is under [MIT License](https://opensource.org/licenses/MIT).