Socket
Book a DemoInstallSign in
Socket

github.com/ArjenSchwarz/go-output/v2

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ArjenSchwarz/go-output/v2

v2.2.0
Source
Go
Version published
Created
Source

go-output v2 Documentation

This directory contains comprehensive documentation for go-output v2.

Getting Started

  • GETTING-STARTED.md - Quick introduction to v2 features and concepts
  • DOCUMENTATION.md - Complete library documentation and API reference

Migration from v1

API Reference

  • API.md - Comprehensive interface reference with examples

Examples

See the ../examples/ directory for working code examples demonstrating all major features.

Development

Quick Start for Contributors

# Clone and set up the project (from the repository root)
# Note: Makefile is in the repository root, not in v2/

# Run the pre-commit check (format, lint, test)
make check

# Run only unit tests
make test

# Run integration tests (if needed)  
make test-integration

# Generate coverage report
make test-coverage

Documentation

  • ../CLAUDE.md - Complete development guide including:
    • Makefile targets and commands
    • Testing philosophy and organization
    • Code architecture and patterns
    • Modernization details (Go 1.24+ features)

Testing Strategy

The v2 codebase follows modern Go 2025 best practices:

  • Map-based Table Tests: Improved test isolation using map[string]struct patterns
  • Integration Test Separation: Uses INTEGRATION=1 environment variable
  • File Organization: Large test files split by logical functionality for maintainability
  • Test Conversion Tools: Available in test-conversion/ directory for modernizing test patterns

Run make help to see all available development commands.

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.