Pointer of slice of pointers panicking when making : <p>I have the following code :</p>

<pre><code>var ANIMATIONS *[]*SDL.Animable

....

func main() {
    *ANIMATIONS = make([]*SDL.Animable, 0, 100)
</code></pre>

<p>But its panicking when running. What is the right way of initializing this?</p>

<p>Error : </p>

<pre><code>panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4afe3a]

goroutine 1 [running, locked to thread]:
main.main()
</code></pre>
