posted @ 2024-02-22 10:06
ZhangZhihuiAAA
阅读(9)
推荐(0)
posted @ 2024-02-22 09:49
ZhangZhihuiAAA
阅读(9)
推荐(0)
posted @ 2024-02-21 21:59
ZhangZhihuiAAA
阅读(11)
推荐(0)
摘要:
Type assertions For an expression x of interface type, but not a type parameter, and a type T, the primary expression x.(T) asserts that x is not nil
阅读全文
posted @ 2024-02-21 21:40
ZhangZhihuiAAA
阅读(30)
推荐(0)
posted @ 2024-02-21 21:28
ZhangZhihuiAAA
阅读(9)
推荐(0)
posted @ 2024-02-21 21:07
ZhangZhihuiAAA
阅读(5)
推荐(0)
posted @ 2024-02-21 20:17
ZhangZhihuiAAA
阅读(11)
推荐(0)
posted @ 2024-02-21 19:55
ZhangZhihuiAAA
阅读(8)
推荐(0)
摘要:
We’ve seen in this section that in Go, having a nil receiver is allowed, and an interface converted from a nil pointer isn’t a nil interface. For that
阅读全文
posted @ 2024-02-21 18:21
ZhangZhihuiAAA
阅读(17)
推荐(0)
摘要:
Unintended side effects with named result parameters:
阅读全文
posted @ 2024-02-21 17:15
ZhangZhihuiAAA
阅读(8)
推荐(0)