Skip to content

Commit 051e945

Browse files
committed
Onpremise/Example: Fix bearerauth example
1 parent 5002af4 commit 051e945

File tree

1 file changed

+2
-2
lines changed
  • onpremise/examples/bearerauth

1 file changed

+2
-2
lines changed

onpremise/examples/bearerauth/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
jira "github.com/andygrunwald/go-jira/onpremise"
7+
jira "github.com/andygrunwald/go-jira/v2/onpremise"
88
)
99

1010
func main() {
@@ -20,7 +20,7 @@ func main() {
2020
panic(err)
2121
}
2222

23-
u, _, err := client.User.GetCurrentUser(context.Background())
23+
u, _, err := client.User.GetSelf(context.Background())
2424
if err != nil {
2525
panic(err)
2626
}

0 commit comments

Comments
 (0)