2min chapter

Changelog Master Feed cover image

The files & folders of Go projects (Go Time #278)

Changelog Master Feed

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode