By using build tags, you can create different versions of your Go application from the same source code and toggle between them with ease.
In this example, @Miki Tebeka shows us how to use both explicit and implicit build tags when building Go executables.
Golang 1.17 Release Notes: https://go.dev/doc/go1.17
Package Build Documentation: https://pkg.go.dev/go/build
Pprof Library: https://pkg.go.dev/net/http/pprof
----
Want to access our full online courses?
https://ardanlabs.com/education
Interested in attending one of our instructor-led remote training events? https://www.ardanlabs.com/live-training-events/
For everything else:
Website: https://www.ardanlabs.com/
Github: https://github.com/ardanlabs
Twitter: https://twitter.com/ardanlabs