docs: update readme

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ committed 2020-07-06 15:20:29 +08:00
1 parent 0a904b93de
commit a258c3e65a
2 files changed
+13 -1

No files matched your search

+12
View File
@@ -149,3 +149,15 @@ func MakeDir(dirName string) {
err = os.Mkdir(dirName, 0700)
}
}
func paddingZero(s []byte, l int) []byte {
h := l - len(s)
if h <= 0 {
return s
} else {
for i := len(s); i < l; i++ {
s = append(s, 0)
}
return s
}
}