Skip to content

Commit

Permalink
chore(v3): update example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira authored and ezekg committed Jun 24, 2024
1 parent d437314 commit b5c1547
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ It will return a `License` object as well as any validation errors that occur. T
object can be used to perform additional actions, such as `license.Activate(fingerprint)`.

```go
license, err := keygen.Validate(context.Background(), fingerprint)
ctx := context.Background()
license, err := keygen.Validate(ctx, fingerprint)
switch {
case err == keygen.ErrLicenseNotActivated:
panic("license is not activated!")
Expand Down

0 comments on commit b5c1547

Please sign in to comment.