Design Patterns in Go: State

Introduction The state pattern is a behavourial state pattern, which allows an object to change its behaviour when its internal state changes. Since this sounds quite cryptic, let’s have a look at the diagram: A short breakdown: As you can…














