合集-golang

摘要:当需要比较两个`[]byte`数组是否相等时有好几种方案,下面可以看出前三种方案都是优化过的,效率高的方案。 ```go package main import ( "bytes" "crypto/rand" mr "math/rand" "testing" ) func StringEqual(n 阅读全文
posted @ 2023-06-13 21:16 janbar 阅读(99) 评论(0) 推荐(0)
摘要:源码如下 package main import ( "archive/zip" "bytes" "encoding/base64" "fmt" "image" "image/color" "image/png" "log" "math/rand" "strings" "time" "github. 阅读全文
posted @ 2024-03-02 22:13 janbar 阅读(293) 评论(0) 推荐(1)