In this video, we will check out Build Tags in Go and learn how to leverage them to include or exclude files while building. Also, if you don't know the new tool directive in Go yet, feel free to check out this video here:
https://youtu.be/B7XRhBjpEaI
📝 Description
Build Tags are a common way in Go to include or exclude files based on specific tags. With these build tags, we can, for instance, differentiate builds for different operating systems, and you need to know them if you want to have platform-specific code. You will learn the following things:
• What are Build Tags
• How can we use a Build Tag to have a build for Linux
• How can we use Build Tags in general
⏳ Timestamps:
00:00 - Introduction
00:17 - What are Build Tags?
01:05 - Creating the Log Module
01:45 - Showcase of using platform-specific code
03:18 - Back to the Log Module
08:53 - Outro
👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering.
📨 Support and Connect!
Buy me a coffee: https://www.buymeacoffee.com/florianwoelki
Become a member. https://www.youtube.com/@FloWoelki/membership
Discord: https://discord.gg/TnA7drJ
Instagram: https://www.instagram.com/flowydev/
LinkedIn: https://www.linkedin.com/in/florian-woelki/
TikTok: https://www.tiktok.com/@florianwoelki
GitHub: https://github.com/FlorianWoelki
📝 Copyright Notice
The original Go Gopher version is originally designed by Renée French (Source: https://go.dev/blog/gopher License details: https://creativecommons.org/licenses/by/4.0/). The gopher used in the video and thumbnail is inspired by this author.
#golang #buildtags #build