June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package consensus type state string const ( first state = "first" second = "second" third = "third" ) var allowedState map[state][]state func init() { // setup valid states allowedState = make(map[state][]state) allowedState[first] = []state{second, third} allowedState[second] = []state{third} allowedState[third] = []state{first} } // CanTransition checks if a ...