This is related to GOLANG language. I can't find out how to convert a value that is of a custom type:
type Hash [32]byte
into a string representation of that hash:
myHash := CreateHash("This is an example text to be hashed")
fmt.Printf("This is the hash: %s", string(myHash))
The error I'm getting is the following:
cannot convert myHash (variable of type Hash) to string compiler(InvalidConversion)
While I'm ok using just [32]bytes, I'd really like to know how to do this in GO; I have been for a while searching and couldn't find a solution this exact case.
Thanks in advance!