golines
« Back to VersTracker
Description:
Golang formatter that fixes long lines
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: golang formatter code-quality developer-tools linting
Install: brew install golines
About:
Golines is a Golang formatter that automatically shortens overly long lines of code to adhere to a specified maximum length. It parses Go source files and rewrites lines exceeding the limit, handling complex cases like nested function calls and chained method invocations. This tool integrates with existing Go toolchains to maintain code readability and style consistency without manual refactoring.
Key Features:
  • Automatically wraps long lines while preserving code structure
  • Handles nested function calls and chained methods
  • Integrates with gofmt and goimports for seamless workflow
  • Configurable line length limits
  • Preserves comments and formatting
Use Cases:
  • Enforcing line length limits in Go projects
  • Refactoring legacy code with long lines
  • Automated code formatting in CI/CD pipelines
Alternatives:
  • gofmt – Standard Go formatter but does not wrap long lines automatically
  • gofumpt – Stricter formatter with additional rules, but limited long-line handling
Version History
Detected Version Rev Change Commit
Oct 9, 2025 1:46pm 0 VERSION_BUMP 3323dd23
Sep 12, 2025 1:46pm 0 VERSION_BUMP e6dff2e5