Skip to content

Glossary: System Design Basics in Go

defer

A Go keyword that runs a call when the surrounding function returns, however it returns. It is used to unlock mutexes and close files.

Where the book teaches it

Related terms

mutex