Grab downloader

This commit is contained in:
Lorenzo Bolla
2021-10-08 10:43:52 +02:00
parent f93bc6ef0f
commit 894192851e
38 changed files with 4240 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
package grabtest
import "encoding/hex"
func MustHexDecodeString(s string) (b []byte) {
var err error
b, err = hex.DecodeString(s)
if err != nil {
panic(err)
}
return
}
func MustHexEncodeString(b []byte) (s string) {
return hex.EncodeToString(b)
}