Questions on linters

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Gin

    Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

    I want to enforce not importing go gin in my business logic. For example, make sure "github.com/gin-gonic/gin" is not imported in internal/core. Is there such linter? I have looked at depguard but I didnt find any option to specify the package where we want to enforce the rule.

  • plumber

    Go tool to aid in plumbing contexts (by kylelemons)

    You're on your own here too. This one probably requires using the golang.org/x/tools/analysis package, which actually isn't too bad. Here is one that does other things with context that you might be able to crib from: plumber

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • go-kit

    A standard library for microservices.

    For more background and discussion, including several demonstrations of error handling decorators, please see Go kit issue #164, Explain why Logger.Log returns error.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts