A FSM generator writtten i GO