TIL: panic(spew.Sdump(myVar))

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

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • autogold

    Automatically update your Go tests

    I use autogold for my tests now, and I use the -update feature already twice. That's really handy.

  • JSON-to-Go

    Translates JSON into a Go type in your browser instantly (original)

    if you have the JSON, you might try this to give you an idea: https://mholt.github.io/json-to-go/

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • valast

    Convert Go values to their AST

  • Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

    I use https://github.com/stretchr/testify in tests, it prints structs and diffs very well

  • litter

    Litter is a pretty printer library for Go data structures to aid in debugging and testing.

    I like litter, and I have a simple helper that is effectively:

  • dd

    Data Dumper library dumps any data as valid syntax in Go

  • gofakeit

    Random fake data generator written in go

    Tangentially related, but there is a package out there called go-fakeit github.com/brianvoe/gofakeit.git for generating random data, which doesn't sound like it entirely maps with what you're doing, but there may be some overlap.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

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