Skip to content

Commit

Permalink
fix README.md usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
jackspirou committed Sep 15, 2024
1 parent a616ae6 commit 6a9d893
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ fmt.Println(key) // Output: 38QARV0-1ET0G6Z-2CJD9VA-2ZZAR0X
```go
key := "38QARV0-1ET0G6Z-2CJD9VA-2ZZAR0X"
uuid, err := uuidkey.FromString(key)
decodedKey, err := uuidkey.FromString(key)
if err != nil {
fmt.Println("Error:", err)
}
uuid, err := decodedKey.UUIDString()
if err != nil {
fmt.Println("Error:", err)
return
}
fmt.Println(uuid) // Output: d1756360-5da0-40df-9926-a76abff5601d
```
Expand Down

0 comments on commit 6a9d893

Please sign in to comment.