Hello!I have some question about the Mode of gin.I can't understand the differ between three ginModes,such as "release","debug" or "test".Would you give me some help?
Comment From: jincheng9
With "debug" mode, Gin prints some extra debug information. Under development, use "debug" mode, which is the default mode. In production, use "release" mode.
You can just ignore "test" mode, which does not mean much.
Comment From: man-to-learn
In order to write golang UT, I have to understand the "test" mode. Can I understand the "test" mode as the "debug" mode?
Comment From: jincheng9
"test" mode is not "debug" mode. The mode in Gin is only used to control log print.
Comment From: man-to-learn
I got it.Thank you.
Comment From: jincheng9
@man-to-learn glad to help you. I am actively using Gin. Feel free to ask me any questions about Gin.
Comment From: jincheng9
@man-to-learn if you have no other problems, please close this issue. Thanks.
Comment From: elnappo
Release mode should be the default to be secure by default. It happens all the time that someone forgets this, and a service is running in debug mode on production. Please consider changing the default.