
Hacker News: Front Page
shared a link post in group #Stream of Goodies

www.emoses.org
Representing State as interfaces in Go
I made up a neat little pattern in Go the other day. It’s a way to represent a state change in a system by exposing different APIs for different states, while only holding state in a single underlying