Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Menu
  • Posts
  • Tags
  • Search
An ultimate collection Go tips 🚀️

An ultimate collection Go tips 🚀️

An ultimate collection Go tips 🚀️ to provide short but meaningful infographics.

Use -trimpath to use relative file path while building

Go has really awesome documentation 🗃️. I stumbled upon a build 🏗️ flag and now I know how useful it is.

~1 min read July 31, 2021

Summary of channel behavior

Summary 📝 of state of a channel 🆚 operations in Go.

~1 min read July 31, 2021

SHRINK your Go application 🚀️ build size by ~30% just by adding a flag to build command

Go provides a linker flag to eliminate debug information and DWARF tables while building executables.

~1 min read July 31, 2021

Provide a set of flags to all go commands with GOFLAGS environment variable

You may have encountered a use case 🎯️ where you want to provide a set of flags to all Go applications. We end up providing all such flags to every go command ⬇️.

~1 min read July 31, 2021

© 2021 An ultimate collection Go tips 🚀️. Powered by Jekyll & So Simple.