Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lxn/walk
/ SaveState
Method
SaveState
button.go:175–177 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
173
}
174
175
func
(b *Button) SaveState() error {
176
return
b.WriteState(fmt.Sprintf(
"%t"
, b.Checked()))
177
}
178
179
func
(b *Button) RestoreState() error {
180
s, err := b.ReadState()
Callers
nothing calls this directly
Calls
2
Checked
Method · 0.95
WriteState
Method · 0.80
Tested by
no test coverage detected