title: Golang: Assigning a value to struct member that is a pointer
body: <p>I'm trying to assign a value to a struct member that is a pointer, but it gives "panic: runtime error: invalid memory address or nil pointer dereference" at runtime...</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "strconv"
  )
  
  // Test
  type stctTest struct {
      blTest *bool
  }
  
  func main() {
  
      var strctTest stctTest
      *strctTest.blTest = false
  
      fmt.Println("Test is " + strconv.FormatBool(*strctTest.blTest))
  
  }
  </code></pre>
  
  <p>The runtime error seems to come from the assignment of the value with *strctTest.blTest = false , but why? How do I set it to false?</p>