August 2019
Beginner to intermediate
798 pages
17h 2m
English
Anonymous functions can be defined inline without the need for a name and they are usually used for implementing things that require a small amount of code. In Go, a function can return an anonymous function or take an anonymous function as one of its arguments. Additionally, anonymous functions can be attached to Go variables. Note that anonymous functions are also called closures, especially in functional programming terminology.
When an anonymous function is suitable for a job it is extremely convenient ...
Read now
Unlock full access