Documentation
¶
Overview ¶
Package minify produces a denser, token-cheaper VIEW of a source file for read-only exploration. It strips comments and redundant whitespace so the model can scan or understand code for far fewer tokens than read_file's raw, line-numbered output — without ever changing the file on disk.
Correctness over aggression: Go is minified through the real go/parser AST (guaranteed valid, comment-free output), and any file it cannot parse — or any non-Go file — falls back to a conservative whitespace normalization that can never alter code meaning (it strips no comments, since doing that safely needs a real parser per language). The transform is therefore incapable of corrupting what the model sees: the worst case is "no reduction", never "wrong content".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.