<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go/lib/bytes/bytes_example_test.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>2025-01-22T17:01:35Z</updated>
<entry>
<title>all: replace [lib/bytes.WriteXxx] with standard library</title>
<updated>2025-01-22T17:01:35Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-22T16:44:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=7041153f3c1f464464cbf8faf7541821dc33e14d'/>
<id>urn:sha1:7041153f3c1f464464cbf8faf7541821dc33e14d</id>
<content type='text'>
The "encoding/binary.BigEndian" in standard library provides method
PutXxx that do the same thing.
</content>
</entry>
<entry>
<title>all: replace "lib/bytes.ReadXxx" with standard library</title>
<updated>2025-01-22T17:00:38Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-22T16:27:48Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=7f52c92fab6a49149643feeb9b3e5c06ef249ec1'/>
<id>urn:sha1:7f52c92fab6a49149643feeb9b3e5c06ef249ec1</id>
<content type='text'>
Package "encoding/binary" from standard library support reading integer
from bytes using BigEndian, LittleEndian variables.
</content>
</entry>
<entry>
<title>all: replace "lib/bytes.AppendXxx" with standard library</title>
<updated>2025-01-22T17:00:30Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-22T16:16:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=8ad0d7cc01c08f60402d3d18df5dea13bfd94ece'/>
<id>urn:sha1:8ad0d7cc01c08f60402d3d18df5dea13bfd94ece</id>
<content type='text'>
Since Go 1.19, package "encoding/binary.BigEndian" support appending
byte order.
</content>
</entry>
<entry>
<title>lib/bytes: replace Copy and Concat with standard library</title>
<updated>2025-01-22T14:34:16Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-22T14:33:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=360cd7bdc721c2aa968e2f6888db1c7e36538ae2'/>
<id>urn:sha1:360cd7bdc721c2aa968e2f6888db1c7e36538ae2</id>
<content type='text'>
Since Go 1.20, the standard bytes package have the Copy function.
Since Go 1.22, the standard slices package have the Concat function.

</content>
</entry>
<entry>
<title>lib/bytes: split the hexdump related functions to separate package</title>
<updated>2024-12-28T09:46:59Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-12-28T09:22:29Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c1aab5c376dfa1845b839f1c4b9876a1412a8d24'/>
<id>urn:sha1:c1aab5c376dfa1845b839f1c4b9876a1412a8d24</id>
<content type='text'>
Package hexdump implements reading and writing bytes from and into
hexadecimal number.
It support parsing output from hexdump(1) tool.
</content>
</entry>
<entry>
<title>lib/bytes: add function AppendInt64 and AppendUint64</title>
<updated>2024-09-30T16:04:56Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-09-25T16:57:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=04ab5cfb262c8dbdadf2090bde99506ff2eac5a9'/>
<id>urn:sha1:04ab5cfb262c8dbdadf2090bde99506ff2eac5a9</id>
<content type='text'>
The AppendInt64 append an int64 value into slice of byte.
The AppendUint64 append an uint64 value into slice of byte.
</content>
</entry>
<entry>
<title>lib/bytes: add parameter networkByteOrder to ParseHexDump</title>
<updated>2024-03-26T16:07:02Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-26T15:43:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=f4a86000adc2284b2c4f3c68b464b04438dd70f6'/>
<id>urn:sha1:f4a86000adc2284b2c4f3c68b464b04438dd70f6</id>
<content type='text'>
If networkByteOrder is true, the ParseHexDump read each hex string
in network byte order or as order defined in text.

While at it, fix reading and parsing single byte hex.
</content>
</entry>
<entry>
<title>all: move the repository to "git.sr.ht/~shulhan/pakakeh.go"</title>
<updated>2024-03-02T08:59:46Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-01T20:07:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=901c9803e6f93e0d5ee282f4061309022c46f490'/>
<id>urn:sha1:901c9803e6f93e0d5ee282f4061309022c46f490</id>
<content type='text'>
There are several reasons that why we move from github.com.

First, related to the name of package.
We accidentally name the package with "share" a common word in English
that does not reflect the content of repository.
By moving to other repository, we can rename it to better and unique
name, in this "pakakeh.go".
Pakakeh is Minang word for tools, and ".go" suffix indicate that the
repository related to Go programming language.

Second, supporting open source.
The new repository is hosted under sourcehut.org, the founder is known
to support open source, and all their services are licensed under AGPL,
unlike GitHub that are closed sources.

Third, regarding GitHub CoPilot.
The GitHub Terms of Service [1], allow any public content that are hosted
there granted them to parse the content.
On one side, GitHub helps and flourish the open source, but on another
side have an issues regarding scraping the copyleft license [2].

[1]: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#4-license-grant-to-us
[2]: https://githubcopilotinvestigation.com
</content>
</entry>
<entry>
<title>lib/bytes: add function RemoveSpaces</title>
<updated>2023-06-03T18:01:01Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-06-03T17:35:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=f31dc2563c9d264a81ae3dd74f6c6a6a3db629c8'/>
<id>urn:sha1:f31dc2563c9d264a81ae3dd74f6c6a6a3db629c8</id>
<content type='text'>
Unlike TrimSpaces, which only remove spaces on beginning and end,
RemoveSpaces remove all spaces including in between characters.
</content>
</entry>
<entry>
<title>lib/bytes: change the package name in Example to have _test suffix</title>
<updated>2023-04-12T18:30:53Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-04-09T19:09:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=5120d36fdb9e374cb77f7aa21f7caca170d0a4b8'/>
<id>urn:sha1:5120d36fdb9e374cb77f7aa21f7caca170d0a4b8</id>
<content type='text'>
Package name in test Example should be different with the actual package.
This is to minimize leaking un-exported functions or methods.
</content>
</entry>
</feed>
