浏览 193
分享
Handle Type Assertion Failures
The single return value form of a type assertion will panic on an incorrecttype. Therefore, always use the "comma ok" idiom.
Bad | Good |
---|---|
|
|
评论列表