I love how simple testing is in Go - Go / Golang Testing Tutorial

Опубликовано: 08 Апрель 2026
на канале: Donald Feury (dak425)
1,629
90

🎨 Artist/Thumbnail Creator: https://jawhaj.art
📝 Blog: https://donaldfeury.xyz/topics
👥Memberships: https://vod.strms.net/j/UCTHij3Ac5Giz...

Its not uncommon to change code you've already written for various reasons. The problem is we tend to break it when we do that. So what do you do? You write tests!

The go standard library has a testing package built into it, which works surprisingly well. I get you up to speed on how to write a basic test and a table drive test to back up any code changes you may make to your existing code.

THANK YOU ###
Newest Channel Member -
Newest Subscriber - Phillip Lineburg

WANT TO SUPPORT THE CHANNEL? ###
💰 Support Links: https://donaldfeury.xyz/donate

WANT TO ASK ME A QUESTION? ###
💬 Contact Me: https://donaldfeury.xyz/contact

SOCIAL PLATFORMS ###
🗣 Matrix: https://donaldfeury.xyz/matrix
💬 Pleroma: https://donaldfeury.xyz/pleroma
🗨️ Discord: https://donaldfeury.xyz/discord
🐦 Twitter: https://donaldfeury.xyz/twitter

VIDEO PLATFORMS ###
🎦 Twitch: https://donaldfeury.xyz/twitch
🎥 Odysee: https://donaldfeury.xyz/odysee

OTHER THINGS ###
📁 GitLab: https://donaldfeury.xyz/gitlab
🎥 My Gear: https://kit.co/dfeury

SOFTWARE I USE ###
🌐 Brave Browser - https://brave.com/
🎞 ffmpeg: https://ffmpeg.org/
📽️ Open Broadcaster Software: https://obsproject.com/
🎨 GIMP: https://www.gimp.org/
📙 Neovim: https://neovim.io/

Thank ya'll for your time and support!

#golang #go #testing #tabledriventests