brain/state.go

14 lines
156 B
Go
Raw Permalink Normal View History

2023-07-03 02:42:43 +00:00
package brain
type State struct {
2023-07-04 02:08:43 +00:00
Value int
}
func (state *State) Set(v int) {
state.Value = v
}
func (state *State) Get() int {
return state.Value
2023-07-03 02:42:43 +00:00
}