arrays - Compiler errors -
After reading the shoot, I have started playing with Goolg. And I'm trying to make a simple TCP chat I have created a user structure, and I want to listen to every user interband channel from the user array.
I know that the problem here is with the writeUser () function after waiting for the IUserbound.
I get such errors from the compiler:
./ chatserver.go: 22: syntax error: unexpected LCAN, expected) ./chatserver.go : 25: Non-declaration statement outside function body ./chatserver.go31: Non-declaration statement outside function body ./chatserver.go:32: Syntax error: unexpected < / Li>
You have tried to navigate
func recieve (user.inbound chan string) {// ^^^^^ - that part is incorrect
You can not take an object's property into such a function logic - it really does not make sense. What will you do with that channel I will leave you (you do not seem to have anything in the function with it).
Other errors are not standing first by one - given that such an error could parse the parser out of weird.
In addition, you have some random dropdown semicolons below your broadcast
method.
Comments
Post a Comment