./prog.go:66:6: missing function body ./prog.go:66:30: syntax error: unexpected [, expecting comma or ) ./prog.go:69:2: syntax error: non-declaration statement outside function body Go build failed.
I figure it must have something to do with the pointer to the string in the function inx, more specifically sr *string[1000]Thanks in advance.
Enter code here..../test.go:34:15: cannot use &sRegister2 (type *[1000][2]string) as type *[1000]string in argument to inx./test.go:34:28: cannot use &iRegister2 (type *[1000]uint64) as type *uint64 in argument to inx
./test.go:38:15: cannot use &sRegister4 (type *[1000][4]string) as type *[1000]string in argument to inx
./test.go:38:28: cannot use &iRegister4 (type *[1000]uint64) as type *uint64 in argument to inx
./test.go:42:15: cannot use &sRegister8 (type *[1000][8]string) as type *[1000]string in argument to inx
./test.go:42:28: cannot use &iRegister8 (type *[1000]uint64) as type *uint64 in argument to inx
./test.go:46:15: cannot use &sRegister16 (type *[1000][16]string) as type *[1000]string in argument to inx
./test.go:46:29: cannot use &iRegister16 (type *[1000]uint64) as type *uint64 in argument to inx
./test.go:50:15: cannot use &sRegister32 (type *[1000][32]string) as type *[1000]string in argument to inx
./test.go:50:29: cannot use &iRegister32 (type *[1000]uint64) as type *uint64 in argument to inx