init: v1.0.0

This commit is contained in:
yaole
2026-05-27 23:03:00 +08:00
commit 8d97f750eb
466 changed files with 80067 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package utils
// Clearable 内存置0接口
// someinterface.(utils.Clearable).Clear()
type Clearable interface {
Clear()
}
func ClearBytes(b []byte) {
b = b[:cap(b)]
for i := range b {
b[i] = 0
}
}