How do you iterate though nested structs and print them?

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

    Colored pretty printer for Go language

    for debug I use https://github.com/k0kubun/pp

  • pp

    Colored pretty printer for Go language (by yudai)

    github.com/yudai/pp

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

  • q

    Quick and dirty debugging output for tired Go programmers (by ryboe)

    github.com/ryboe/q

  • spew

    Implements a deep pretty printer for Go data structures to aid in debugging

    github.com/davecgh/go-spew

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