title: Golang : type conversion between slices of structs
body: <p>This questions follows <a href="https://stackoverflow.com/questions/24613271/golang-is-conversion-between-different-struct-types-possible/24614292#24614292">another question of mine</a>.</p>
  
  <p>I don't exactly get what is wrong with my attempt to convert <code>res</code> to a <code>ListSociete</code> in the following test code :</p>
  
  <pre><code>import (
      "errors"
      "fmt"
      "github.com/jmcvetta/neoism"
  )
  
  type Societe struct {
      Name string
  }
  
  type ListSociete []Societe
  
  func loadListSociete(name string) (ListSociete, error) {
      db, err := neoism.Connect("http://localhost:7474/db/data")
      if err != nil {
          return nil, err
      }
      res := []struct {
          Name string `json:"a.name"`
      }{}
      cq := neoism.CypherQuery{
          Statement: `
              MATCH (a:Societe)
              WHERE a.name = {name}
              RETURN a.name
              `,
          Parameters: neoism.Props{"name": name},
          Result:     &amp;res,
      }
      db.Cypher(&amp;cq)
      if len(res) == 0 {
          return nil, errors.New("Page duz not exists")
      }
      r := res[0]
      return ListSociete(res), nil
  }
  </code></pre>
  
  <p>Is a <code>[]struct{Name string}</code> different from a <code>[]struct{Name string</code> <code>json:"a.name"</code> <code>}</code> ?</p>
  
  <p>Or is a ListSociete different from a <code>[]struct{Name string}</code> ?</p>
  
  <p>Thanks.</p>