摘要: binary包是 golang的二进制包, a := "hello,this is a first sentence." //b := "hello,this is a second sentence." //实例化一个 io容器 by := bytes.NewBuffer([]byte{}) // 阅读全文
posted @ 2021-10-12 18:33 梁天 阅读(625) 评论(0) 推荐(0) 编辑
摘要: diskQueue是backendQueue接口的一个实现。backendQueue的作用是在实现在内存go channel缓冲区满的情况下对消息的处理的对象。 除了diskQueue外还有dummyBackendQueue实现了backendQueue接口。 对于临时(#ephemeral结尾)T 阅读全文
posted @ 2021-10-12 15:37 梁天 阅读(129) 评论(0) 推荐(0) 编辑