title: mismatched types *string and string
body: <p>I am attempting to run a conditional to basically see if the object is empty but I keep getting (similar variations) of this error:</p>
  
  <pre><code>invalid operation: release.Name == "" (mismatched types *string and string)
  </code></pre>
  
  <p>Here is the code that is dying:</p>
  
  <pre><code>import (
      "github.com/google/go-github/github"
  )
  
  func TestLatestTag(user, project string) {
  
      var client *github.Client
      client = github.NewClient(nil)
  
      releases, _, err := client.Repositories.ListTags(user, project, nil)
      var release github.RepositoryTag
  
      if err != nil {
          fmt.Println("Error")
      } else {
          if release.Name == "" {
              fmt.Println("None")
          } else {
              fmt.Println(releases[0])
          }
      }
  }
  </code></pre>
  
  <p>If I change the if statement to <code>*release.Name == ""</code> as the error suggests I get a different error, which I don't really understand:</p>
  
  <pre><code>panic: runtime error: invalid memory address or nil pointer dereference
  [signal 0xb code=0x1 addr=0x0 pc=0x26fd]
  
  goroutine 1 [running]:
  </code></pre>
  
  <p>I'm sure there is any easy way to do this but I am not very familiar with handling objects/structs</p>