mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Grab downloader
This commit is contained in:
+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