Get retrieves the bool value in the setting.
(sv *Values)
| 25 | |
| 26 | // Get retrieves the bool value in the setting. |
| 27 | func (b *BoolSetting) Get(sv *Values) bool { |
| 28 | return sv.getInt64(b.slot) != 0 |
| 29 | } |
| 30 | |
| 31 | func (b *BoolSetting) String(sv *Values) string { |
| 32 | return EncodeBool(b.Get(sv)) |