Disable log in golang gin

We would like to disable log in golang gin project.

We don’t want to show any panic or log messages.

If you do not need a log in, then don’t implement a log in… Not sure how this is related to printing panics though…

Try this:
gin.DefaultWriter = io.Discard