Defer, Panic and Recover
Run cleanup code with defer and turn a panic back into an error with recover.
Xem bài học →defer, panic và recover, closure, JSON, sắp xếp, rune và byte trong các chương trình Go hằng ngày.
Chạy thử Go onlineRun cleanup code with defer and turn a panic back into an error with recover.
Xem bài học →Store functions in variables, pass them around and capture variables.
Xem bài học →Convert structs to JSON and back with encoding/json and struct tags.
Xem bài học →Handle Unicode text correctly and build long strings efficiently.
Xem bài học →