Тёмный

Practical Explanation of Golang INTERFACES 

Tiago
Подписаться 12 тыс.
Просмотров 6 тыс.
50% 1

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

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 !
@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
@rostyslav5334
@rostyslav5334 6 месяцев назад
Bro, thaaaank you!
@prashlovessamosa
@prashlovessamosa 6 месяцев назад
Awesome explanation Tiago.
@agb2557
@agb2557 5 месяцев назад
Amazing video, a bit fast but after coding along I got it, thanks
@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!
@lucasbarroso23
@lucasbarroso23 6 месяцев назад
Great content, thanks Tiago!
@aghileslounis
@aghileslounis 6 месяцев назад
Great video once again
@pedrolemos3030
@pedrolemos3030 6 месяцев назад
Amazing content!
@saurontrollbrawl
@saurontrollbrawl 6 месяцев назад
I agree. Your content is amazing!!
@TiagoTaquelim
@TiagoTaquelim 6 месяцев назад
Thanks 💪
@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
A Practical Example How To Use Interfaces In Golang
14:42
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 107 тыс.
Лучше одной, чем с такими
00:54
Просмотров 758 тыс.
Master Golang with Interfaces
21:54
Просмотров 14 тыс.
This Will Make Everyone Understand Golang Interfaces
21:03
HTMX & Go with ThePrimeagen | Preview
15:58
Просмотров 154 тыс.
This is your last video about Golang Structs!
15:57
Просмотров 6 тыс.
The Only Database Abstraction You Need | Prime Reacts
21:42
How to create your Golang APIs from now on with v1.22
12:51
How the Golang Context Package Works
12:12
Просмотров 6 тыс.
This Is The BEST Way To Structure Your GO Projects
11:08