goravel / goravel

A Golang framework for web artisans. Tribute to Laravel.

Home Page:https://goravel.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ [Feature] Supports configuring the json serialization/deserialization package in config/app.go

devhaozi opened this issue · comments

Before feedback (在反馈之前)

  • There are no features that I want to submit in Issues (当前 Issues 中没有我将要提交的新功能)

Describe Feature (描述功能)

The current framework uses sonic by default in supported environments to provide the best performance, but this also adds 20MB to the size of the generated binary file.

In some projects where performance is not very important, I hope to have the option to choose json serialization/deserialization package.

This is an example of fiber

Hi @devhaozi 👋

We think your feedback is very valuable! If you are interested, please submit a PR, please include test cases, documentation, etc., and ensure that the CI is passed, thank you and look forward to your contribution!
我们认为您的反馈非常有价值!如果有兴趣欢迎提交 PR,请包含相应的测试用例、文档等,并确保 CI 通过,感谢和期待您的贡献!

Yes, we may remove sonic from the framework, and provide an interface to support it, we don't need a new config file, we may add the new configuration in config/app.go