title: Can I use make(chan someStruct) in go?
body: <p>for example:</p>
  
  <pre><code>type name struct {
      name string
      age int
  }
  
  func main() {
        c := make(chan name)
  
        c &lt;- name{"sfsaf", 1}
        a, b := &lt;- c
  
        close(c)
  }
  </code></pre>
  
  <p>The result:</p>
  
  <blockquote>
    <p>fatal error: all goroutines are asleep - deadlock!</p>
  </blockquote>
  
  <p>I want to pass values through channel. What should I do?</p>