]> git.giacomolli.uk - onechat/commit
Name and order the compactor code
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 17:02:56 +0000 (14:02 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 17:02:56 +0000 (14:02 -0300)
commitb94f6248bfaa989d4da6b0980648be20bf5a07d2
treefad2f0213eb2f39a48554792cc6433ccd82c66fe
parent1e7f78e7b12d3881a6c345d191dfef6e42d9b01f
Name and order the compactor code

Every package-level name that only the compactor uses starts with
compactor: its limit of tries, the ruler, the task text, the note on a
long line, and the helpers that cut a line and pick the shortest one.
Names such as ruler and shortest read as helpers of the whole program,
but only the compactor uses them.

The declarations of the compactor files follow the order of the go-code
skill. The behavior does not change.

Issue: 947bddb
compactor.go
compactor_test.go