[Golang] Dependency injection with Fx

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

Panpito

Panpito

Күн бұрын

In this video, we explore the FX framework from Uber, built using Golang, and how it can help you manage dependencies in your Golang projects. The FX framework provides a simple and flexible way to manage dependencies using dependency injection. We'll take a look at how the FX framework can help you manage dependencies in a web application and make your code more modular, easier to test, and more maintainable.
Twitter: / panpit0
• 🧠 DESIGN PATTERNS 🧠
• 🎥 GO FOR IT! 🎥
• 📚 PUBLISHING YOUR LIBR...
• 💥 ALL ABOUT GO 💥
---
00:00 introduction
03:20 uber github
06:34 setup
16:28 working with interfaces
19:20 multiple injections
25:30 pros and cons
32:45 conclusion
---
Golang version: 1.19
IDE: Goland
OS: Windows
Accent: French
#Uber #Golang #FXFramework #DependencyInjection #CodeModularity #Testability #Maintainability

Пікірлер: 5
@jasonleo
@jasonleo 6 ай бұрын
I wasn't get it after reading the docs, but your video let me totally get it, thanks a lot
@qiyuewang3743
@qiyuewang3743 9 ай бұрын
Hi! I really liked your videos as it's beginner friendly. I want to learn more about Uber fx framework and there aren't many tutorials on it. Have you considered to have a set of videos of building up a project with the framework and include more features, such as supply and populate which confused me a lot.
@user-cw7xd6de2l
@user-cw7xd6de2l Жыл бұрын
thx it is really good video to me, and i have some questions I have a background in Python and Java, and I am familiar with the Dependency Injection (DI) pattern in runtime. However, I've heard that reflection in Go, as a compile-time language, is relatively expensive. In your opinion, what advantages might Uber have sought in developing their library (framework) compared to Google's compile-time DI library, Wire?
@praneethk3554
@praneethk3554 Ай бұрын
guice
@muratasarslan2359
@muratasarslan2359 5 ай бұрын
please remove this background music 🙏
Trying Another Way... (Dependency Injection)
11:23
Davis Media
Рет қаралды 12 М.
[Golang] Interfaces and dependency injection
8:27
Panpito
Рет қаралды 21 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
[Golang] Chain of responsibility
10:46
Panpito
Рет қаралды 530
A Practical Example How To Use Interfaces In Golang
14:42
Anthony GG
Рет қаралды 20 М.
The standard library now has all you need for advanced routing in Go.
13:52
[Golang] Composite
18:56
Panpito
Рет қаралды 699
Structure Your Golang Service With Layers Like This
7:59
Anthony GG
Рет қаралды 12 М.
Turborepo 2.0 - New UI + Watch Mode?!
6:09
Anthony Shew
Рет қаралды 5 М.
Advanced dependency management in Go using Fx - Preslav Mihaylov
1:01:04
GoLab conference
Рет қаралды 3,9 М.
Practical Explanation of Golang INTERFACES
8:27
Tiago
Рет қаралды 4,2 М.