Skip to content

Glossary: Go Beyond the Basics

function literal

Also written: anonymous function

A function written without a name, right where it is needed, such as `func(cents int) int { return cents / 2 }`.

Where the book teaches it

Related terms

function valueclosure