gin
gin copied to clipboard
[Help] indirect require package [github.com/go-playground/locales] too big
Description
I use gin as my web framework. everytime I packup my binary file, in a pure container, it always cost too much time to download locales package since gin which less than 3M, requires locales indirectly, I repeatly download which more than 30M could gin remove locales or replace it with a smaller requirement?
go mod why github.com/go-playground/locales
# github.com/go-playground/locales
github.com/gin-gonic/gin/binding
github.com/go-playground/validator/v10
github.com/go-playground/universal-translator
github.com/go-playground/locales
maybe commit issue to here: https://github.com/go-playground/validator/issues
maybe commit issue to here: https://github.com/go-playground/validator/issues
Validation is self-defined in beego , so I think if there is a option for gin to build its own validation package? For now, it's not a graceful solution to require locales indirectly, considering its size and only used in validation. Strongly suggest you guys think about it.