aboutsummaryrefslogtreecommitdiff
path: root/_bin
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
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
2024-01-24_bin/go-mod-tip: use committer timestamp instead of author timestampShulhan
If the tip is rebased to upstream, the author timestamp is not changes, but the commit timestamp changes.
2023-09-10_AUR: include go-mod-tip.sh to packageShulhan
While at it, fix the example in comment on go-mod-tip.sh on how to run the script.
2023-05-21_bin: add parameter to specific test in go-test-coverhtmlShulhan
The second parameter is optional. It is passed to -run= argument in "go test". Default value is ".", or all functions.
2023-03-25_bin: add shell script go-test-lint.sh to run test and lint sequentiallyShulhan
The go-test-lint.sh run Go test and if its success it will run predefined linter, in the current directory. Arg 1: the method or function to test, default to ".". The linter program and its argument is derived from environment variable GO_LINT. If its empty, it will try the following linter in order: revive, or golangci-lint. To add additional arguments to go test set the environment variable GO_TEST_ARGS.
2023-02-25AUR: add go-test-coverhtml.sh and go-bench.sh into packageShulhan
While at it, canges the go-bench count to 10.
2022-08-05_bin: add script to run Go benchmarkShulhan
The go-bench.sh accept two arguments: the method or function to benchmark, default to "."; and benchmark number, default to current timestamp YYYYmmDD-HHMM.
2022-07-27_bin: add script to run Go test and generate HTML coverageShulhan
The script accept one single argument: the path to package to be tested. If its empty default to current directory and sub-directories.
2022-07-27_bin: add script go-mod-tip.shShulhan
The go-mod-tip shell script get and print the latest Go module version based on the last tag and the latest commit hash from the current working directory. This command usually used to fix go.mod due to force commit.