Byte array to string without conversion

hashStr := fmt.Sprintf("%x", myhash)

(or hex.EncodeToString if you don’t already have a fmt dependency)

1 Like