media: add ImdbVotes field to Omdb struct
This commit is contained in:
@@ -9,6 +9,5 @@ func AsSHA256(o interface{}) string {
|
||||
// credits: https://blog.8bitzen.com/posts/22-08-2019-how-to-hash-a-struct-in-go
|
||||
h := sha256.New()
|
||||
h.Write([]byte(fmt.Sprintf("%v", o)))
|
||||
|
||||
return fmt.Sprintf("%x", h.Sum(nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user