Skip to content

Commit b5c1547

Browse files
mathnogueiraezekg
authored andcommitted
chore(v3): update example
1 parent d437314 commit b5c1547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ It will return a `License` object as well as any validation errors that occur. T
9696
object can be used to perform additional actions, such as `license.Activate(fingerprint)`.
9797

9898
```go
99-
license, err := keygen.Validate(context.Background(), fingerprint)
99+
ctx := context.Background()
100+
license, err := keygen.Validate(ctx, fingerprint)
100101
switch {
101102
case err == keygen.ErrLicenseNotActivated:
102103
panic("license is not activated!")

0 commit comments

Comments
 (0)