Skip to content

Instantly share code, notes, and snippets.

View renevall's full-sized avatar

Rene Vallecillo V renevall

  • Distance.so
  • La Puente
  • 08:35 (UTC -08:00)
View GitHub Profile
@maratori
maratori / .golangci.yml
Last active October 10, 2026 22:48
Golden config for golangci-lint
# ==================================================================================================
#
# NOTICE
#
# This gist is no longer maintained. It was moved to repo:
#
# https://github.com/maratori/golangci-lint-config
#
# Full history and all v2 releases are preserved in the repo.
#
import (
log "github.com/sirupsen/logrus"
"github.com/jinzhu/gorm"
)
type GormLogger struct {}
func (*GormLogger) Print(v ...interface{}) {
if v[0] == "sql" {
log.WithFields(log.Fields{"module": "gorm", "type": "sql"}).Print(v[3])