Go Time: Golang, Software Engineering cover image

The files & folders of Go projects

Go Time: Golang, Software Engineering

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner