Function Literals and Closures in Golang – Part 1



Function Literals and Closures in Golang – Part 1

Function Literals and Closures in Golang - Part 1

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.

GITHUB REPO: https://github.com/moss-n/go-func-lit-closure-examples

GO Language Specification for Function Literals: https://golang.org/ref/spec#Function_literals

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

Comments are closed.