Skip to main content

Command Palette

Search for a command to run...

What is a closure in Go?

Published
•1 min read•View as Markdown
B
Senior Software Engineer | Backend, Cloud, Data, Machine Learning

A closure is a function value that references variables from outside its body. The function may access and assign to the referenced variables; in this sense the function is "bound" to the variables.

More from this blog

yesicbap

437 posts