Этот урок пока на английском.
Functions are values too
In Go you can store a function in a variable, pass it to another function or create one on the spot. That unlocks closures: functions that remember the variables around them.
Этот урок пока на английском.
In Go you can store a function in a variable, pass it to another function or create one on the spot. That unlocks closures: functions that remember the variables around them.