mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
Grab downloader
This commit is contained in:
1 parent
f93bc6ef0f
commit
894192851e
38 files changed
+4240
-1
No files matched your search
+16
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user