gofiber / contrib

🧬 Repository for third party middlewares with dependencies
https://docs.gofiber.io/contrib/
MIT License
224 stars 118 forks source link

🤗 [Question]: Make Fiber Faster #1200

Closed jrCleber closed 1 week ago

jrCleber commented 2 weeks ago

Question Description

I'm using fiber. In the documentation there is an option to make it faster, but the Config struct is no longer available, does this mean that this implementation is no longer needed?

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v2"
import "github.com/goccy/go-json"

func main() {
    app := fiber.New(fiber.Config{
        JSONEncoder: json.Marshal,
        JSONDecoder: json.Unmarshal,
    })

    # ...
}

Checklist:

ReneWerner87 commented 1 week ago

Hi, sorry i missed this report. Hopefully you found the answer. The example should work on v2 and v3.