hashstructure icon indicating copy to clipboard operation
hashstructure copied to clipboard

Error for syscall.Errno

Open andreasg123 opened this issue 2 years ago • 0 comments

I encountered an error with syscall.Errno (defined as uintptr):

var err syscall.Errno
_, herr := hashstructure.Hash(err, hashstructure.FormatV2, nil)
binary.Write: invalid type syscall.Errno

I could test for that but I'm wondering what kind of restrictions I should assume for calling hashstructure.Hash.

andreasg123 avatar Aug 08 '23 18:08 andreasg123