diff --git a/sdk/go/examples/http/main.go b/sdk/go/examples/http/main.go index 3a1a8a993..cfa51cae7 100644 --- a/sdk/go/examples/http/main.go +++ b/sdk/go/examples/http/main.go @@ -121,7 +121,7 @@ func CreateGithubIssue(owner, repo, title, body string) (*Issue, error) { } // The response will contain the issue data, including the URL of the issue on GitHub. - var issue *Issue - response.JSON(issue) - return issue, nil + var issue Issue + response.JSON(&issue) + return &issue, nil }