Discover 5 small tips in Go that you may not have known about, including how to make the compiler count array elements, using `go run .`, making numbers more readable with underscores, having a different test package in the same package, and passing the same argument multiple times in string formatting.

3m read timeFrom medium.com
Post cover image
Table of contents
5 small tips I recently learned in GoIntroMake the compiler count the array elementsUse go run . instead of go run main.goUse the underscore to make your numbers readableYou can have a different test package in the same packagePassing the same argument multiple times
4 Comments

Sort: