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