Dynamic arrays Go lang implementation