go-zero
go-zero copied to clipboard
For decimal types, use shopspring/decimal to replace float64.
https://github.com/zeromicro/go-zero/issues/1994
感谢你的 pr,decimal 这个是一个好问题,但是在代码生成我们不会直接引入三方包,这个最好把主动权交给用户,后期考虑出一个配置方案来解决这个问题。
Thanks for you contribution! That's an awesome solution for decimal, in my opinion, developer import the 3rd package for decimal is much more suite than goctl's code generation, to solve this problem, it's possible that we would provide a configuration to resolve it, thanks again!
是否可以把decimal类型直接内置到框架中 这样就不需要引入第三方包了?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is it possible to build the decimal type directly into the framework so that there is no need to introduce third-party packages?