Skip to content

Glossary: Go in Practice

Closure

Also written: function literal

A function written inline that can use variables from the code around it. In `PlaceOrder`, the function passed to `withTx` uses `o` and `lines` this way.

Where the book teaches it

Related terms

Transaction