title: It is an empty value struct nil
body: <p>Look at the following code snippet.</p>
  
  <pre><code>package main
  
  import "fmt"
  
  type Empty struct {
      Field1, Field2 string
  }
  
  func main() {
  
      value := Empty{}
  
      fmt.Println(value == nil)
      fmt.Printf("%p", &amp;value)
  
  }
  </code></pre>
  
  <p>I've got compiler error</p>
  
  <pre><code>./empty_struct.go:19: cannot convert nil to type Empty
  </code></pre>
  
  <p>How can I check a value struct type, if it is empty or not?</p>