Defer, Panic and Recover
Run cleanup code with defer and turn a panic back into an error with recover.
Открыть урок →defer, panic и recover, замыкания, JSON, сортировка, руны и байты в повседневных программах на Go.
Попробовать Go онлайнRun cleanup code with defer and turn a panic back into an error with recover.
Открыть урок →Store functions in variables, pass them around and capture variables.
Открыть урок →Convert structs to JSON and back with encoding/json and struct tags.
Открыть урок →Handle Unicode text correctly and build long strings efficiently.
Открыть урок →