Hi Vic, thankyou for the series of articles on this. I have couple of questions.
In the /go/routing.go sample there is
/go/routing.go
// Endpoint for PATH method app.Path("/", func(c *fiber.Ctx) error { // function that replaces part of the existing data })
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?
/go/templates.go
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.
gofiber/template
github.com/gofiber/template/pug
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Vic, thankyou for the series of articles on this. I have couple of questions.
In the
/go/routing.go
sample there isShould 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?Hi,
Wow, nice catch! My bad... Thanks, I fixed it in article 👍
Function for Pug (and other supported template engines) was included to
gofiber/template
module. Call it, like this:github.com/gofiber/template/pug
.