14 lines
156 B
Go
14 lines
156 B
Go
package brain
|
|
|
|
type State struct {
|
|
Value int
|
|
}
|
|
|
|
func (state *State) Set(v int) {
|
|
state.Value = v
|
|
}
|
|
|
|
func (state *State) Get() int {
|
|
return state.Value
|
|
}
|