摘要: 无缓冲channel chan无人接收会一直阻塞。 func Echo(nums []int) <-chan int { out := make(chan int) // 这里一定要启动一个协程,不然会panic go func() { for _, n := range nums { out <- 阅读全文
posted @ 2021-06-09 15:14 zqlucky 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 2021技能提升那些事 设计模式: https://refactoringguru.cn/design-patterns 容器: kuberneters in action kuberneters权威指南 深入理解kuberneters-极客时间 serverless: knative实战 工具: 阅读全文
posted @ 2021-06-09 14:19 zqlucky 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 依赖的包为reflect。 Kind():返回最基础的类型。 type Kind uint const ( Invalid Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Floa 阅读全文
posted @ 2021-06-09 13:58 zqlucky 阅读(42) 评论(0) 推荐(0) 编辑