I was studying the examples and looking at the Gophers demo
I see that it retrieves the player pointer from session storage, and then writes the X and Y values.
Is this thread safe, or would it be best to have some kind of lock? ( Potential race condition )
I know it's just an example, but I'm new to Go and trying to learn best practices.
I was studying the examples and looking at the Gophers demo I see that it retrieves the player pointer from session storage, and then writes the X and Y values. Is this thread safe, or would it be best to have some kind of lock? ( Potential race condition ) I know it's just an example, but I'm new to Go and trying to learn best practices.