Skip to content

Commit 365a3a0

Browse files
committed
update headings
1 parent b5c1547 commit 365a3a0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ keygen.Logger = &CustomLogger{Level: keygen.LogLevelDebug}
8181

8282
The following top-level functions are available. We recommend starting here.
8383

84-
### keygen.Validate(fingerprints ...string)
84+
### keygen.Validate(ctx, fingerprints ...string)
8585

8686
To validate a license, configure `keygen.Account` and `keygen.Product` with your Keygen account
8787
details. Then prompt the end-user for their license key or token and set `keygen.LicenseKey`
@@ -96,8 +96,7 @@ 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-
ctx := context.Background()
100-
license, err := keygen.Validate(ctx, fingerprint)
99+
license, err := keygen.Validate(context.Background(), fingerprint)
101100
switch {
102101
case err == keygen.ErrLicenseNotActivated:
103102
panic("license is not activated!")
@@ -110,7 +109,7 @@ case err != nil:
110109
fmt.Println("License is valid!")
111110
```
112111

113-
### keygen.Upgrade(options keygen.UpgradeOptions)
112+
### keygen.Upgrade(ctx, options keygen.UpgradeOptions)
114113

115114
Check for an upgrade. When an upgrade is available, a `Release` will be returned which will
116115
allow the update to be installed, replacing the currently running binary. When an upgrade
@@ -482,7 +481,7 @@ package main
482481

483482
import (
484483
"context"
485-
484+
486485
"github.com/keygen-sh/keygen-go/v3"
487486
)
488487

0 commit comments

Comments
 (0)