State Pattern in Go: Interface-Based States
The State pattern lets an object alter its behavior when its internal state changes. Instead of littering your code with conditionals that check state before every operation, you encapsulate…
Read more →The State pattern lets an object alter its behavior when its internal state changes. Instead of littering your code with conditionals that check state before every operation, you encapsulate…
Read more →