golines
brew install golines
v0.13.0
MIT
Golang formatter that fixes long lines
26
30-day installs · #6149
73
90-day · #6330
892
365-day · #4020
1.1k
★ GitHub stars · updated 8mo ago
Build dependencies
Links
- https://github.com/segmentio/golines
- GitHub: segmentio/golines
- Brew formula source: Formula/g/golines.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [
"go"
],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Golang formatter that fixes long lines",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:18+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "golines",
"github_default_branch": "master",
"github_last_commit_at": "2025-12-19T21:40:04Z",
"github_readme_excerpt": "[](https://github.com/segmentio/golines/actions/workflows/test.yml)\n[](https://goreportcard.com/report/github.com/segmentio/golines)\n[](https://godoc.org/github.com/segmentio/golines)\n\n# golines\n\nGolines is a Go code formatter that shortens long lines, in addition to all\nof the formatting fixes done by [`gofmt`](https://golang.org/cmd/gofmt/).\n\n## Maintenance \u0026 Archiving\n\n\u003e [!IMPORTANT]\n\u003e As of late 2024, [segmentio/golines](https://github.com/segmentio/golines/) has\n\u003e functionally been in maintenance mode and several dependencies appear to be\n\u003e similarly unmaintained.\n\u003e \n\u003e As of 2025-12-19, this repository\n\u003e [has been archived](https://docs.github.com/en/repositories/archiving-a-github-repository/archiving-repositories).\n\u003e At the time this repo was archived, the maintainers of golangci-lint\n\u003e [maintain a fork](https://github.com/golangci/golines/) that incorporates several\n\u003e patches and fixes. This project is unaffiliated with Twilio Segment.\n\u003e \n\u003e The original code will remain available and the terms of the license will not be changed.\n\n## Motivation\n\nThe standard Go formatting tools (`gofmt`, `goimports`, etc.) are great, but\n[deliberately don\u0027t shorten long lines](https://github.com/golang/go/issues/11915);\ninstead, this is an activity left to developers.\n\nWhile there are different tastes when it comes to line lengths in go, we\u0027ve generally found\nthat very long lines are more difficult to read than their shortened alternatives. As an example:\n\n```go\nmyMap := map[string]string{\"first key\": \"first value\", \"second key\": \"second value\", \"third key\": \"third value\", \"fourth key\": \"fourth value\", \"fifth key\": \"fifth value\"}\n```\n\nvs.\n\n```go\nmyMap := map[string]string{\n\t\"first key\": \"first value\",\n\t\"second key\": \"second value\",\n\t\"third key\":",
"github_repo": "segmentio/golines",
"github_stars": 1135,
"github_topics": [],
"homepage": "https://github.com/segmentio/golines",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 26,
"installs_365d": 892,
"installs_90d": 73,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "MIT",
"llm_generated_at": null,
"llm_model": null,
"name": "golines",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6149,
"rank_365d": 4020,
"rank_90d": 6330,
"raw_hash": "83e4500ee42b93c1",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/golines.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "0.13.0",
"versioned_formulae": [],
"why_use_this": null
}