log / tags / go/fiber

3 posts tagged with "go/fiber"

setup static path in go fiber using embedded file system

Use the embedded file system in GoFiber to serve static files. This guide provides an example of how to replace the 'app.Static' with middleware 'app.Use'. Also, find out how to expose only the index.html.

11 Jan 2024 1 min read

rendering page layout in fiber

Render page layouts in Go Fiber using the ViewEngine. The guide showcases how to pass a layout during rendering, set a default layout to the engine, and exclude the layout when it's already set in the engine.

27 Oct 2023 1 min read

get route params in fiber

Understand the method to get route parameters in Go/Fiber. The snippet shows how to retrieve a parameter from the URL path using `c.Params("foo")` function.

25 Oct 2023 1 min read