title: Cannot get 1 object from Json response
body: <p>I am a beginner to Golang. Can you help me with call of function.
  Here is an example:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "net/http"
  )
  
  type Info struct {
      Name string  `json:"name"`
      Year float64 `json:"year,string"`
  }
  
  func (b *Base) GetInfo() (Info, error) {
      var resp Info
      path := "example.com"
  
      return resp, http.Get(path)
  }
  
  func main() {
      test, err := Base.GetInfo()
      fmt.Println(test, err)
  
  }
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code>{Name Bob Year 10}
  </code></pre>
  
  <p>How I can get only <code>"Bob"</code> ?</p>
  
  <p>And If my response contains more objects example</p>
  
  <pre><code>{Name Bob Year 10}{Name Jane Year 2}.
  </code></pre>
  
  <p>How I can get only names? Didnt understand how to decode it or call.</p>