Practical Explanation of Golang INTERFACES

  Рет қаралды 6,341

Tiago

Tiago

Күн бұрын

In this video I'll give you a practical explanation with real-world examples of how to use interfaces in Go, so you can become a better engineer and make your code more modular and testable.
✅ Check the "Complete Backend API in Golang" Course: • Complete Backend API i...
👉 Join the private community to level up as software engineer: selfmadeengine...
📢 We're building a Discord community, come and join
/ discord
x.com/tiago_ta...
📚 Resources
Effective Go: go.dev/doc/eff...
Jordan Orelli Blog post: jordanorelli.c...
Hope you liked and thanks for watching!
#golang #api #go

Пікірлер: 18
@ikshitchaudhari2529
@ikshitchaudhari2529 6 ай бұрын
Bro you are making killer content on golang, i am just binge watching these amazing tutorials and also following along. Videos like these are so damnn helpful to juniors like us. Keep it up ! and all the best. 🫶
@TiagoTaquelim
@TiagoTaquelim 6 ай бұрын
Thank you so much! I'm glad you're liking them! 💪 more are comming
@ikshitchaudhari2529
@ikshitchaudhari2529 6 ай бұрын
@@TiagoTaquelim waiting for epicness !
@prashlovessamosa
@prashlovessamosa 6 ай бұрын
Awesome explanation Tiago.
@de-is
@de-is 6 ай бұрын
This is Epic! Grand Merci! When I was watching your "How to build ecom API" video, I was thinking "why the hell is he using interfaces here". This is a very good explanation, if not implementation, but purpose is very clear. Videos should be well integrated with each other, guiding us "noob users" to explanations!
@TiagoTaquelim
@TiagoTaquelim 6 ай бұрын
Thannk you so much! I Agree!
@saurontrollbrawl
@saurontrollbrawl 6 ай бұрын
I agree. Your content is amazing!!
@TiagoTaquelim
@TiagoTaquelim 6 ай бұрын
Thanks 💪
@lucasbarroso23
@lucasbarroso23 6 ай бұрын
Great content, thanks Tiago!
@rostyslav5334
@rostyslav5334 6 ай бұрын
Bro, thaaaank you!
@agb2557
@agb2557 5 ай бұрын
Amazing video, a bit fast but after coding along I got it, thanks
@aghileslounis
@aghileslounis 6 ай бұрын
Great video once again
@dixztube
@dixztube 4 ай бұрын
im failing to see how any of these interface videos are really that different. it mostly consist of a dev who knows how to use them, flying through code (at least this is a realistic example with some testing) and i dont know ---- feels like these things are just popped out. probably best to just code yourself and get a feel for it
@pedrolemos3030
@pedrolemos3030 6 ай бұрын
Amazing content!
@rudrOwO
@rudrOwO 6 ай бұрын
Oh not the pigeon lmao
@TiagoTaquelim
@TiagoTaquelim 6 ай бұрын
🤣
@jackofjs2243
@jackofjs2243 6 ай бұрын
In a recipe rest API I recently created created with go(obviously), since I needed to make Multiple insertions in multiple tables, I used a transaction. But... I realized in instead of passing a pointer to sql.db e.g func (ri *RecipeInstruction) Insert(recipe Recipe, tx *sql.Tx) error {} i also wanted to do func (ri *RecipeInstruction) Insert(recipe Recipe, tx *sql.BD) error {} but I could not find a built in interface that can satisfy both a transaction and a DB. Must i create my own? or is this not a proper implementation of interfaces.
@TiagoTaquelim
@TiagoTaquelim 6 ай бұрын
You could either make the transaction just into a function, everything inside it, then you would not need to pass it around. Or you could implement something like this: dev.to/techschoolguru/a-clean-way-to-implement-database-transaction-in-golang-2ba
How to EFFICIENTLY Handle Errors in Golang APIs
10:27
Tiago
Рет қаралды 6 М.
How to Dockerize Vue App With Hot Reloading (HRM)
24:06
codewithtee
Рет қаралды 175
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 32 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,2 МЛН
interfaces advanced - go tutorial for beginners - part 13
7:17
Thomas Langhorst
Рет қаралды 1,6 М.
A Practical Example How To Use Interfaces In Golang
14:42
Anthony GG
Рет қаралды 25 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 14 М.
Master Golang with Interfaces
21:54
Kantan Coding
Рет қаралды 14 М.
Boosting the performance by being unique in Go 1.23!
13:01
Flo Woelki
Рет қаралды 4,9 М.
How to create your Golang APIs from now on with v1.22
12:51
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Рет қаралды 52 М.
How the Golang Context Package Works
12:12
Tiago
Рет қаралды 6 М.
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 70 М.
Master Golang with Composition
27:31
Kantan Coding
Рет қаралды 5 М.