Sobes.tech
Junior — Middle

Have you used the Pedantic library in your projects?

sobes.tech AI

Answer from AI

The Pedantic library is mainly used for static code analysis in Go, helping to identify potential errors and style violations.

In my experience, Pedantic was used to improve code quality, especially in automated tests and CI/CD processes. It helps detect:

  • Incorrect usage of formatting functions in fmt (e.g., fmt.Printf)
  • Errors in struct tags
  • Potential type issues

Example of using Pedantic in CI:

go install github.com/mvdan/pedantic@latest
pedantic ./...

This allows automatic checking of the entire project for best practices and early bug prevention.

Have you used the Pedantic library in your projects… - sobes.tech