Golang: The Last Interface Explanation You'll Ever Need

Published: 07 June 2024
on channel: Flo Woelki
14,993
683

Interfaces are common, easy and important to use in Golang. Next to interfaces, structs are also really important. I've also made a video about them, so feel free to check out this video as well:    • This is your last video about Golang ...  


📝 Description
This time we're tackling interfaces, a vital component of Go and a must-have in every Go developer's toolkit. We'll start off with the basics of defining and implementing interfaces and move on to more advanced topics like implicit interface implementation, the empty interface, and type assertions. We'll also explore the practical application of interfaces through a use case involving a Shape interface with an `Area()` method. This will provide a clear demonstration of methods attached to structs.


⏳ Timestamps:
00:00 - Definition of defer
00:35 - Why interfaces are important
01:42 - Practical example of interfaces
08:38 - The interface type
11:33 - Interface composition
14:29 - Errors and interfaces
17:22 - 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. Plus, I love using Emojis and paper-based animations (so have a look for that, if you want to find my videos).


📨 Support and Connect!
Buy me a coffee: https://www.buymeacoffee.com/florianw...
Become a member:    / @flowoelki  
Discord:   / discord  
Instagram:   / flowydev  
LinkedIn:   / florian-woelki  
TikTok:   / 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/.... The gopher used in the video and thumbnail is inspired by this author.


#golang #go #interface


Watch video Golang: The Last Interface Explanation You'll Ever Need online without registration, duration hours minute second in high quality. This video was added by user Flo Woelki 07 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,993 once and liked it 683 people.