update example

This commit is contained in:
simon987 2019-12-27 13:34:47 -05:00
parent 222fecc338
commit 0b8019bc1e
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ for `fastimagehash-go` to compile.
package main
import (
"github.com/simon987/fastimagehash"
"github.com/simon987/fastimagehash-go"
"fmt"
)

View File

@ -1,12 +1,12 @@
package main
import (
"fastimagehash"
"fmt"
"github.com/simon987/fastimagehash-go"
)
func main() {
hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8, 4)
hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8, 4)
if ret == fastimagehash.Ok {
fmt.Printf("%s (%d)\n", hash.ToHexStringReversed(), ret)