ZhangZhihui's Blog  

2024年2月21日

摘要: 阅读全文
posted @ 2024-02-21 21:59 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(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 阅读(15) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 21:28 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 21:07 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 20:17 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 19:55 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(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 阅读(8) 评论(0) 推荐(0) 编辑
 
摘要: Unintended side effects with named result parameters: 阅读全文
posted @ 2024-02-21 17:15 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 16:53 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: We need to keep two things in mind while using the substring operation in Go. First, the interval provided is based on the number of bytes, not the nu 阅读全文
posted @ 2024-02-21 11:35 ZhangZhihuiAAA 阅读(12) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 11:14 ZhangZhihuiAAA 阅读(7) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 11:04 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 10:45 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-02-21 10:22 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: We should understand the distinction between a charset and an encoding: A charset, as the name suggests, is a set of characters. For example, the Uni 阅读全文
posted @ 2024-02-21 10:00 ZhangZhihuiAAA 阅读(8) 评论(0) 推荐(0) 编辑
 
摘要: We will implement a function that opens a set of files where the file paths are received via a channel. Hence, we have to iterate over this channel, o 阅读全文
posted @ 2024-02-21 09:23 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: A break statement is commonly used to terminate the execution of a loop. When loops are used in conjunction with switch or select, developers frequent 阅读全文
posted @ 2024-02-21 09:04 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑