brain/state.go
2023-07-04 10:08:43 +08:00

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
}