# segmentio/golines

A golang formatter that fixes long lines

Repository: https://github.com/segmentio/golines
Canonical: https://ross.abutalabs.com/products/golines
Language: Go
License: MIT
License Family: permissive
Archived: true
Last push: 2025-12-19T21:40:04+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 58, release rhythm 12, longevity 100
- inputs: {"age_days": 2529, "days_push": 257, "days_rel": 377, "gap_med": null, "n_releases_24m": 1}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1127, forks 78 (observed 2026-08-28T04:03:41.425736+00:00)

## What it is
golines is a Go code formatter that shortens long lines in addition to standard gofmt fixes. The original segmentio repository was archived in December 2025 and is in maintenance mode, with an actively maintained fork at golangci/golines.

## Use cases
- shorten long lines in go source files
- format go code beyond what gofmt does
- enforce a max line length in go projects
- auto-split long map and function call lines in go
- integrate line-shortening formatting into go CI pipelines

## When to avoid
- you want an actively maintained tool - use the golangci/golines fork instead
- you are fine with standard gofmt behavior

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: formatter, developer-tools
- domain: developer-tools, programming-languages
- platform: cli, cross-platform
- tags: go, code-formatting, line-length, gofmt, archived, command-line

## Member repositories
- segmentio/golines (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:41.425736+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:54.339749+00:00, confidence not recorded.
  - readme: https://github.com/segmentio/golines (fetched 2026-08-28T04:03:41.425736+00:00, sha 42cf829d92e9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
