From 13b1eed836249c9f89e7ed7f2d7a30dfa4eda737 Mon Sep 17 00:00:00 2001 From: LE VAN THANH Date: Tue, 15 Nov 2022 18:56:26 +0700 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 175060c..c4fa6d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,42 @@ # frlog fiber routes log + + +## Install +```sh +go get github.com/zerolethanh/frlog +``` + +## Usage + +```go + +func main() { + app := fiber.New() + app.Get("/", func(c *fiber.Ctx) error { + return c.SendString("Hello, World!") + }) + app.Post("/login", func(c *fiber.Ctx) error { + return c.SendString("Login") + }) + app.Get("/user/:id", func(c *fiber.Ctx) error { + return c.SendString("User") + }) + app.Patch("/fly/:from-:to", func(c *fiber.Ctx) error { + return c.SendString("Fly") + }) + + frlog.PrintAppStacks(app) + + log.Fatalln(app.Listen(":3000")) +} + +``` + +> Output: +Ảnh màn hình 2022-11-15 lúc 18 53 41 + + + +## LICENSE +MIT