I'm new to Golang and while trying to implement a simple client server model, I'm getting this error expected identifier on left side of :=syntax on line:
kvs.listener, err := net.Listen("tcp", ":9999")
Specifically the error is under kvs.
I'm not sure why this is happening. If I replace kvs.listener with a simple ln (i.e. no struct) the error go away. Can someone please help me in fixing this?
Thanks!