DEV Community

Discussion on: 📖 Go Fiber by Examples: How can the Fiber Web Framework be useful?

Collapse
bengarrett profile image
Ben

Hi Vic, thankyou for the series of articles on this. I have couple of questions.

In the /go/routing.go sample there is

// Endpoint for PATH method
app.Path("/", func(c *fiber.Ctx) error {
  // function that replaces part of the existing data
})
Enter fullscreen mode Exit fullscreen mode

Should this be Patch? There doesn't seem to be a Path method in fiber/v2 and app.patch is also used by routing.js.

Also in /go/templates.go there is no mention of the module that needs to be imported for pug?

Collapse
koddr profile image
Vic Shóstak Author

Hi,

Should this be Patch? [...]

Wow, nice catch! My bad... Thanks, I fixed it in article 👍

[...] Also in /go/templates.go there is no mention of the module that needs to be imported for pug?

Function for Pug (and other supported template engines) was included to gofiber/template module. Call it, like this: github.com/gofiber/template/pug.