You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calls json.Marshal on a config struct that includes the field Method hashMethod, with the definition type hashMethod func() hash.Hash. Marshalling function references isn't supported and will probably behave in unexpected/undesirable ways. In fingerprint/hash.go there is a lookup table mapping strings to hashMethods, and this string form is probably what is intended, so either the Marshal call should be changed or the Config struct should use a more marshal-friendly wrapper for its hash method.
The text was updated successfully, but these errors were encountered:
The
fingerprint.String
function here:calls
json.Marshal
on a config struct that includes the fieldMethod hashMethod
, with the definitiontype hashMethod func() hash.Hash
. Marshalling function references isn't supported and will probably behave in unexpected/undesirable ways. Infingerprint/hash.go
there is a lookup table mapping strings tohashMethod
s, and this string form is probably what is intended, so either theMarshal
call should be changed or theConfig
struct should use a more marshal-friendly wrapper for its hash method.The text was updated successfully, but these errors were encountered: