linsk/utils/hex.go

12 lines
153 B
Go
Raw Normal View History

2023-08-30 12:39:38 +01:00
package utils
import "encoding/hex"
func MustDecodeHex(s string) []byte {
b, err := hex.DecodeString(s)
if err != nil {
panic(err)
}
return b
}