Get the latest tech news
Packages, Not Programs
Go has a great standard library. What if we think about our work not merely as building one-off programs, but instead contributing packages to the universal Go library?
But since this little language ships with a big standard library, full of all sorts of useful and well-designed packages, we can use it to construct some really powerful programs right away. The pkg.go.dev site lets you search and browse the whole universal library, but a good place to look first is awesome-go, a carefully-curated list of a couple of thousand or so of the very best Go packages, by subject area. It doesn’t seem, from the way we’ve used it in our modified main package, that the Print function needs to take any parameters, and at the moment there don’t seem to be any useful results it could return.
Or read this on Hacker News