Function Literals and Closures in Golang - Part 1

preview_player
Показать описание
In this video, I show you how to write function literals and closures in the Go programming language! These are a more advanced but very useful mechanisms of Go functions.

TOC:
Introduction: 00:00 - 00:21
Function Literal example 1: 00:22 - 01:41
Function Literal assigned to variable: 01:42 - 03:35
Closure introduction: 03:36 - 05:10
Important Closure Features: 05:11 - 10:52
Conclusion: 10:53 - 11:12
Рекомендации по теме
Комментарии
Автор

TOC:
Introduction: 00:00 - 00:21
Function Literal example 1: 00:22 - 01:41
Function Literal assigned to variable: 01:42 - 03:35
Closure introduction: 03:36 - 05:10
Important Closure Features: 05:11 - 10:52
Conclusion: 10:53 - 11:12

tech_with_moss
Автор

Thanks for your clear and well-prepared tutorial. To me with a C/C++ background, I believe that the anonymous function is, more or less, Go's dialect of the function pointer in C/C++. I've been impressed by Go's unconventionally outstanding design and its excellent performance. I agree about the saying that Go is the 21st century C language. The soul of C/C++ is the pointer. So is Go.

GuanglinDu
Автор

Superclear and supernaturally detailed explanation!

nikta
Автор

That was a super explanations
Happy to find this video🎉🎉🎉❤❤❤❤❤

babakdorani
Автор

this syntax is terrible imo, when you essentially just want a static var you have to write func 3 times in a super specific way. but good explanation

robertszabo