title: How to Close Github Issues in Go
body: <p>I know how to create an issue using <a href="https://godoc.org/github.com/google/go-github/github" rel="nofollow noreferrer">go-github</a></p>
  <pre><code>    ctx := context.Background()
      ts := oauth2.StaticTokenSource(
          &amp;oauth2.Token{AccessToken: &quot;xxxxxxxxx&quot;},
      )
      tc := oauth2.NewClient(ctx, ts)
      client := github.NewClient(tc)
      title := &quot;title&quot;
      body := &quot;body&quot;
      opt := &amp;github.IssueRequest{
          Title: &amp;title,
          Body:  &amp;body,
      }
      client.Issues.Create(context.Background(), &quot;owner&quot;, &quot;repo&quot;, opt)
  </code></pre>
  <p>However, the GoDoc does not show how to close an issue.</p>
  <p>If anyone knows how to do this, please let me know.</p>