Re:Three Minor Features in Go 1.18
by klodolph on Thursday December 23, 2021 @01:45PM
(#29665007)
Using a package is the NPM left-pad way of doing things. This function is like two lines long.
[ Parent
| on HN ]
So? Keep it for yourself on an utilities package.
I said nothing of using one package per function.
I used to do that. I had a "goutils" package or something like that.
From use, I concluded that the utilities package contained only two things: functionality that was substantial enough to clean up and publish as its own package on GitHub, and minor functionality that was better off being copy/pasted between projects. So I abandoned my utility package and published a few minor packages on GitHub.