This commit is contained in:
Kevin McIntyre
2025-06-18 01:00:00 -04:00
commit f84b511895
228 changed files with 42509 additions and 0 deletions

25
debug_hash.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"fmt"
"github.com/kevin/go-jdenticon/jdenticon"
)
func main() {
testInputs := []string{"test-hash", "example1@gmail.com"}
for _, input := range testInputs {
hash := jdenticon.ToHash(input)
fmt.Printf("Input: \"%s\"\n", input)
fmt.Printf("Go SHA1: %s\n", hash)
svg, err := jdenticon.ToSVG(input, 64)
if err != nil {
fmt.Printf("Error: %v\n", err)
} else {
fmt.Printf("SVG length: %d\n", len(svg))
}
fmt.Println("---")
}
}