How to initialize array of dynamic size in go?

Gopher

Lets go!!

Published · Jan 28

I try to write a small application in go that takes 'x' numbers of integers from standard input, calculates the mean and gives it back. I have only gotten so far:

When trying to compile this I get the following error message:
invalid array bound elems

What is wrong here?

Write your answer...

Never miss a post from Gopher , when you sign up for Ednsquare.