Learn Go Generics - everything you need to know

  Рет қаралды 8,874

Leetware

Leetware

Күн бұрын

Пікірлер: 20
@joshuaward4725
@joshuaward4725 2 жыл бұрын
This was the best explanation of go generics I've found, subscribed!
@leetwareltd
@leetwareltd 2 жыл бұрын
Thanks mate, appreciate the kind words
@happy..1907
@happy..1907 29 күн бұрын
Very well explained, thanks for creating this video. 👍
@L0wPressure
@L0wPressure 11 ай бұрын
I was confused at first to see that TSM is doing golang videos nowadays... Quite a nice video with clear examples. Thanks :)
@_w62_
@_w62_ Жыл бұрын
This is so far the best video on explaining GENERICS. 👍x10000
@fabrizziorosales9879
@fabrizziorosales9879 10 ай бұрын
The best video that explains generics in go, Thanks :)
@leetwareltd
@leetwareltd 10 ай бұрын
Thanks mate, means a lot to hear you say that 😊
@rw_panic0_0
@rw_panic0_0 11 ай бұрын
thanks, I really like the Currency example, shows what Go generics are capable of!
@computeering
@computeering 4 ай бұрын
Broda u r just awesome
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 8 ай бұрын
thank you :)
@abhinandanbhattacharya1145
@abhinandanbhattacharya1145 2 жыл бұрын
Great tutorial, thank you!
@douglaspetrinbertini
@douglaspetrinbertini Жыл бұрын
Thanks, very good content here!
@dean-channel
@dean-channel Жыл бұрын
Thanks, good tutorial!
@ashutoshsinha5345
@ashutoshsinha5345 Жыл бұрын
Its the best so far for Generics
@mikolajsemeniuk8574
@mikolajsemeniuk8574 Жыл бұрын
Nice video!
@berkansivrikaya9055
@berkansivrikaya9055 Жыл бұрын
I don't get the last example. What is difference between `func PrintBalance[T Currency](b T )` with the function `func PrintBalance(b Currency)`?
@leetwareltd
@leetwareltd Жыл бұрын
Great question - my understanding is that you can't use type constraints (in this case Currency) as a type in a normal function - only in a generic function. The reason has to do with how the compiler works, non-generic functions always compile once to handle that function. But a generic function will compile multiple times for each type that it handles. The constraint `Currency` can't be used as a type to compile into a function which works for all implementations of `Currency` - so we need to use a generic function. At least this is how I remember it working in go 1.18 - it's been a while since I looked this deeply at it 😅
@manavshah5395
@manavshah5395 4 ай бұрын
Great question. I still don't understand this bit.
@stack.1
@stack.1 5 ай бұрын
Voice over is pretty cloudy, but nice video
@charliesta.abc123
@charliesta.abc123 5 ай бұрын
Golang is sexy!
SWIG - Using C++ in Golang
5:27
Leetware
Рет қаралды 2,5 М.
The Most Efficient Struct Configuration Pattern For Golang
11:10
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 215 МЛН
English or Spanish 🤣
00:16
GL Show
Рет қаралды 19 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 2,9 МЛН
Advanced Golang: Generics Explained
13:37
Code With Ryan
Рет қаралды 63 М.
This Is The BEST Way To Structure Your GO Projects
11:08
Melkey
Рет қаралды 73 М.
The standard library now has all you need for advanced routing in Go.
13:52
Concurrency in Go
18:40
Jake Wright
Рет қаралды 615 М.
Golang's Mocking Techniques - Kyle Yost | hatchpad Huddle
41:20
Understanding Allocations: the Stack and the Heap - GopherCon SG 2019
21:39
Advanced Golang: Channels, Context and Interfaces Explained
22:17
Code With Ryan
Рет қаралды 118 М.
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 62 М.
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 215 МЛН