From b5c15473b8afc8ed65b5309fe4fe0cf89b0ec9ac Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Sun, 23 Jun 2024 18:42:39 -0300 Subject: [PATCH] chore(v3): update example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b2d2ee7..6ad175a 100644 --- a/README.md +++ b/README.md @@ -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!")