摘要: 原文链接:https://www.kancloud.cn/digest/batu-go/153538 bytes.buffer是一个缓冲byte类型的缓冲器存放着都是byteBuffer 是 bytes 包中的一个 type Buffer struct{…} A buffer is a variab 阅读全文
posted @ 2021-02-02 15:28 salami_china 阅读(253) 评论(0) 推荐(0)
摘要: 原文链接:https://medium.com/@kevinbai/golang-%E4%B8%AD-string-%E4%B8%8E-byte-%E4%BA%92%E8%BD%AC%E4%BC%98%E5%8C%96-6651feb4e1f2 func StrToBytes(s string) [ 阅读全文
posted @ 2021-02-02 15:22 salami_china 阅读(234) 评论(0) 推荐(0)
摘要: func RemoveDuplicateElement(stringList []string) []string { result := make([]string, 0, len(stringList)) temp := map[string]struct{}{} for _, item := 阅读全文
posted @ 2021-02-02 13:09 salami_china 阅读(225) 评论(0) 推荐(0)