12 lines
153 B
Go
12 lines
153 B
Go
package utils
|
|
|
|
import "encoding/hex"
|
|
|
|
func MustDecodeHex(s string) []byte {
|
|
b, err := hex.DecodeString(s)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return b
|
|
}
|