<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go/lib/text/chunk.go, branch dev</title>
<subtitle>Collections of packages and tools for working with Go programming language.</subtitle>
<id>http://git.kilabit.info/pakakeh.go/atom?h=dev</id>
<link rel='self' href='http://git.kilabit.info/pakakeh.go/atom?h=dev'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/'/>
<updated>2026-04-04T20:52:47Z</updated>
<entry>
<title>all: apply go fix</title>
<updated>2026-04-04T20:52:47Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-04T20:50:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=778fd16011ec1d39c41b62372dc65f045183266e'/>
<id>urn:sha1:778fd16011ec1d39c41b62372dc65f045183266e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: use for-range with numeric</title>
<updated>2025-01-22T20:41:10Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-22T20:40:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=2a0694d2fa577574b505c4635eb8a824eaf88ddc'/>
<id>urn:sha1:2a0694d2fa577574b505c4635eb8a824eaf88ddc</id>
<content type='text'>
Go 1.22 now support for-range on numeric value.
</content>
</entry>
<entry>
<title>lib/text: fix linter warnings</title>
<updated>2023-09-10T19:26:33Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-09-10T16:41:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=948c949c969a0d90ab7b0a3b2acc3a1190b68cc4'/>
<id>urn:sha1:948c949c969a0d90ab7b0a3b2acc3a1190b68cc4</id>
<content type='text'>
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"
</content>
</entry>
<entry>
<title>lib/text: realign struct for better size allocation</title>
<updated>2023-09-10T19:26:33Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-09-10T16:36:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=9d05da3b79182f0fa63c268cc9c028482ae6a1c9'/>
<id>urn:sha1:9d05da3b79182f0fa63c268cc9c028482ae6a1c9</id>
<content type='text'>
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)
</content>
</entry>
<entry>
<title>lib/text: replace json.Escape with strconv.Quote</title>
<updated>2022-09-07T16:22:23Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-09-07T16:22:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c6b0f2520f27bedd36cee06c0d62dffd95f90381'/>
<id>urn:sha1:c6b0f2520f27bedd36cee06c0d62dffd95f90381</id>
<content type='text'>
We want to prevent import cycle in the future, when the test package
use the text/diff for display difference between string.
</content>
</entry>
<entry>
<title>lib/text: add custom MarshalJSON to type Chunk and Line</title>
<updated>2022-08-28T14:24:59Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-08-28T14:23:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=639f96a5819eda392a9d9c470e93494746a5711a'/>
<id>urn:sha1:639f96a5819eda392a9d9c470e93494746a5711a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: reformat all codes using gofmt 1.19 (the Go tip)</title>
<updated>2022-05-09T14:54:02Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-09T14:54:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=0c9abc1a962955dd0b795a422958c5445145d54c'/>
<id>urn:sha1:0c9abc1a962955dd0b795a422958c5445145d54c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/text: implement Stringer on Chunk and Line types</title>
<updated>2021-07-30T13:58:52Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2021-07-30T13:58:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=e95832fe2768e9063a50ed7ef8dab8fc9395a47e'/>
<id>urn:sha1:e95832fe2768e9063a50ed7ef8dab8fc9395a47e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge package "github.com/shuLhan/tekstus/diff" to "text/diff"</title>
<updated>2018-09-17T15:51:23Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2018-09-16T17:46:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=9d378c9e1061a509b7ec5b0580edb48182173148'/>
<id>urn:sha1:9d378c9e1061a509b7ec5b0580edb48182173148</id>
<content type='text'>
</content>
</entry>
</feed>
