Prototype state machine for Go.