AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Importance of Files and Folders in Go
Go files have the Go extension and underscore test. They're different, aren't they, to normal Go files? That's where test code goes. And when you build that stuff's ignored, and when you run your test, that stuff is included. There's also the underscore operating system or underscore architecture. You put that at the end of a file, just like underscore test. It'll only compile or only be included for that operating system or architecture. Don't name things underscore windows unless you only want them to be imported for windows.