Go Time: Golang, Software Engineering cover image

The files & folders of Go projects

Go Time: Golang, Software Engineering

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app