Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit b2f5830

Browse files
chore: fix example (#583)
1 parent 62f222b commit b2f5830

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/go/examples/http/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func CreateGithubIssue(owner, repo, title, body string) (*Issue, error) {
121121
}
122122

123123
// The response will contain the issue data, including the URL of the issue on GitHub.
124-
var issue *Issue
125-
response.JSON(issue)
126-
return issue, nil
124+
var issue Issue
125+
response.JSON(&issue)
126+
return &issue, nil
127127
}

0 commit comments

Comments
 (0)