Glossary: Software Design Patterns in Go
State machine
Something that is always in exactly one of a fixed set of states, with rules for moving between them. An order goes placed, paid, shipped, delivered, and can be cancelled only before it ships.
Glossary: Software Design Patterns in Go
Something that is always in exactly one of a fixed set of states, with rules for moving between them. An order goes placed, paid, shipped, delivered, and can be cancelled only before it ships.