Closed jdockerty closed 5 months ago
By having these routes hang from PlaygroundServer, this means we can remove the erroneous use of *state.State being passed into every function.
PlaygroundServer
*state.State
This should look like this:
func (s *PlaygroundServer) HandleRun() { ... }
Once this is done, we have access to the internal State already and do not need to explicitly pass it in every single time from outside.
State
By having these routes hang from
PlaygroundServer
, this means we can remove the erroneous use of*state.State
being passed into every function.This should look like this:
Once this is done, we have access to the internal
State
already and do not need to explicitly pass it in every single time from outside.