docs: update readme

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-06 15:20:29 +08:00
parent 0a904b93de
commit a258c3e65a
2 changed files with 13 additions and 1 deletions
+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
}
}