aboutsummaryrefslogtreecommitdiff
path: root/lib/dsv/reader.go
AgeCommit message (Collapse)Author
11 daysall: apply go fixShulhan
2025-01-23all: replace "interface{}" with "any"Shulhan
2024-03-02all: move the repository to "git.sr.ht/~shulhan/pakakeh.go"Shulhan
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
2023-09-11lib/dsv: realign struct for better size allocationShulhan
The realignment reduce the cost of the following struct, * ReadWriter: from 232 to 224 bytes (-8 bytes) * Metadata: from 104 to 88 bytes (-16 bytes) * Reader: from 160 to 140 bytes (-20 bytes) * struct in TestConfigParse: from 24 to 16 bytes (-8 bytes) * struct in TestDatasetMode: from 16 to 8 bytes (-8 bytes) * ReaderError: from 48 to 40 bytes (-8 bytes) * Writer: from 72 to 56 bytes (-16 bytes)
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2019-01-29lib/dsv: fix stylecheck linter warningsShulhan
Most of the warnings are caused by old-habits of using "0 == var" style of checking variable value, others are if-else condition that can be joined.
2018-11-30all: fix linter warnings on naked returnShulhan
2018-09-18Merge package "github.com/shuLhan/dsv"Shulhan