| Age | Commit message (Collapse) | Author |
|
|
|
Go 1.22 now support for-range on numeric value.
|
|
Some changes,
* add missing comment to method MarshalJSON in Chunk and Line
* use consistent receiver name on Chunk and Line
* rename variable "new" to "newline" to fix
"redefinition of the built-in function new"
|
|
The realignment reduce the cost of the following struct,
* Chunk: from 16 to 8 bytes (-8)
* struct in TestChunk_MarshalJSON: from 40 to 32 bytes (-8)
* diff.LineChange: from 96 to 88 bytes (-8)
* Line: from 16 to 8 bytes (-8)
* struct in TestLine_MarshalJSON: from 40 to 32 bytes (-8)
|
|
We want to prevent import cycle in the future, when the test package
use the text/diff for display difference between string.
|
|
|
|
|
|
|
|
|