undefined (type []DataReponse has no field or method)
<p>I'm trying to compile the following piece of code</p>

<pre><code>    var result []DataReponse
    if result.Commenter == "teacher"{
        sender = models.CommentUser{
            Name:result.UserName,
            Email:result.UserEmail,
        }
    }else{
        sender = models.CommentUser{
            Name:result.ChildName,
            Email:result.ChildEmail,
    }
</code></pre>

<p>I am receiving the error <code>result.Commenter undefined (type []DataReponse has no field or method Commenter)</code> here is my struct</p>

<pre><code>//DataReponse is the structure of the response
type DataReponse struct{
  CommentText   string              `json:"comment_text"`
  Commenter     string              `json:"commenter"`
  ChildEmail    core.NullString     `json:"child_email"`
  ChildName     core.NullString       `json:"child_name"`
  UserName      core.NullString       `json:"user_name"`
  UserEmail     core.NullString       `json:"user_email"`
}
</code></pre>

<p>how can i use result values ?</p>