awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
davecgh avatar

davecgh/go-spew

0
View on GitHub↗
6,393 stars·376 forks·Go·ISC·12 views

Go Spew

go-spew is a deep inspection library and debugging utility for Go. It functions as a data structure pretty printer that renders complex, nested types into human-readable strings with indentation and type information.

The library provides specialized capabilities for visualizing internal program states, including the ability to dump data structures with pointer addresses and map keys. It includes a configuration system to adjust printing behavior, such as limiting recursion depth and setting indentation.

The tool uses reflection-based type inspection and recursive tree traversal to handle nested structures. It ensures consistent output through deterministic map key sorting and prevents infinite loops using cyclic reference detection.

Features

  • Go Variable Inspection - Provides detailed variable state printing to help developers find and fix bugs in Go applications.
  • Data Pretty Printers - Functions as a pretty printer that renders complex Go data structures into human-readable strings with indentation.
  • Iterative and Recursive Traversals - Recursively traverses pointers, slices, and maps to produce a comprehensive deep-print representation of Go types.
  • Deep Inspection Libraries - Implements a formatter that traverses nested Go types to output detailed representations including pointers and map keys.
  • Go Debugging Utilities - Provides a specialized library for inspecting variable states and deep nested structures within Go applications.
  • Go Type Visualization - Converts complex nested Go types and pointer addresses into a readable format for easier program state analysis.
  • Circular Reference Detection - Prevents infinite loops when printing self-referential data structures by tracking visited pointer identities.
  • Value Inspection - Uses the reflect package to dynamically examine the underlying types and values of Go data structures at runtime.
  • Structured Text Pretty-Printing - Produces detailed, indented representations of complex Go structures to facilitate human-readable debugging.
  • Data Structure Dumping - Produces detailed data representations including newlines, indentation, and pointer information for state inspection.
  • Formatting Configurations - Provides user-defined settings to control indentation and detail levels for data structure formatting.
  • Printing Behavior Configurations - Includes a configuration system to adjust data visualization by setting indentation and limiting recursion depth.
  • Go Development Workflows - Supports rapid prototyping by allowing developers to dump internal data structures to the console for verification.
  • Deterministic Map Sorting - Ensures reproducible debug output by iterating through map keys in a deterministic sorted order.
  • Logging - Pretty-printer for Go data structures.
  • Debugging And Profiling - Pretty-prints variables for debugging.
  • Logging Libraries - Deep pretty-printer for debugging data structures.

Star history

Star history chart for davecgh/go-spewStar history chart for davecgh/go-spew

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Go Spew

These projects share indexed features with Go Spew. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • k0kubun/ppk0kubun avatar

    k0kubun/pp

    2,047View on GitHub↗

    Colored pretty printer for Go language

    Gogopretty-printer
    View on GitHub↗2,047
  • microsoft/vscode-gomicrosoft avatar

    microsoft/vscode-go

    5,897View on GitHub↗

    This project is a Go language extension for VS Code that provides a comprehensive development environment through a language server client, a debugging interface, and a test automation runner. It integrates language intelligence, formatting, and debugging capabilities to support the full Go language development lifecycle. The extension distinguishes itself by managing the Go toolchain, including the installation and configuration of external binaries required for language features. It also features a dedicated test automation interface that allows for the generation of unit test skeletons and

    TypeScript
    View on GitHub↗5,897
  • textualize/toolongTextualize avatar

    Textualize/toolong

    3,921View on GitHub↗

    toolong is a terminal log viewer and TUI log manager designed for monitoring live log streams and navigating large log files. It functions as a log aggregator and JSONL formatter, capable of merging multiple log files into a single chronological view by automatically detecting timestamps. The application supports the visualization of structured data by pretty printing JSONL files and applying syntax highlighting to common web server log patterns. It handles large-scale data efficiently through virtual-sized scrollable views, allowing users to open compressed logs or files of any size without

    Pythonjsonlrichterminal
    View on GitHub↗3,921
  • alexcesaro/logalexcesaro avatar

    alexcesaro/log

    48View on GitHub↗

    Logging packages for Go

    Go
    View on GitHub↗48
Compare all 30 related projects→

Frequently asked questions

What does davecgh/go-spew do?

go-spew is a deep inspection library and debugging utility for Go. It functions as a data structure pretty printer that renders complex, nested types into human-readable strings with indentation and type information.

What are the main features of davecgh/go-spew?

The main features of davecgh/go-spew are: Go Variable Inspection, Data Pretty Printers, Iterative and Recursive Traversals, Deep Inspection Libraries, Go Debugging Utilities, Go Type Visualization, Circular Reference Detection, Value Inspection.

Which projects share features with davecgh/go-spew?

Projects with overlapping indexed features include: k0kubun/pp — Colored pretty printer for Go language. microsoft/vscode-go — This project is a Go language extension for VS Code that provides a comprehensive development environment through a… textualize/toolong — toolong is a terminal log viewer and TUI log manager designed for monitoring live log streams and navigating large log… apsdehal/go-logger — Simple logger for Go programs. Allows custom formats for messages. alexcesaro/log — Logging packages for Go. amoghe/distillog — Logging, distilled.