Используйте
r := gin.New()
место
// Default With the Logger and Recovery middleware already attached r := gin.Default()