Documentation ¶ Index ¶ type Shaper type State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Shaper ¶ type Shaper interface { State() State // returns current state of the life form SetNext(State) // sets next state for the lifeform Update() // updates current state to the next state } type State ¶ type State int const ( ALIVE State = iota + 1 DEAD ) Source Files ¶ View all Source files interfaces.go Directories ¶ Show internal Expand all Path Synopsis simplecell Click to show internal directories. Click to hide internal directories.