TIL: panic(spew.Sdump(myVar))

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • 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/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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.

  • 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.

    InfluxDB logo
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