I have the following code :
var ANIMATIONS *[]*SDL.Animable
....
func main() {
*ANIMATIONS = make([]*SDL.Animable, 0, 100)
But its panicking when running. What is the right way of initializing this?
Error :
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()