共计 136 个字符,预计需要花费 1 分钟才能阅读完成。
golang 类型断言两种形式
- Comma-ok 断言
- switch 断言 (element.(type) 语法)
具体代码参考上面链接
https://github.com/webtao520/golang_project/tree/master/go%E5%BA%94%E7%94%A8
正文完
共计 136 个字符,预计需要花费 1 分钟才能阅读完成。
golang 类型断言两种形式
具体代码参考上面链接
https://github.com/webtao520/golang_project/tree/master/go%E5%BA%94%E7%94%A8