Bool is a helper to unmarshal a JSON Boolean.
()
| 100 | |
| 101 | // Bool is a helper to unmarshal a JSON Boolean. |
| 102 | func (p *Partial) Bool() (b bool, err error) { |
| 103 | err = p.Unmarshal(&b) |
| 104 | return |
| 105 | } |
| 106 | |
| 107 | // Function is a helper to unmarshal a callback function. |
| 108 | func (p *Partial) Function() (f Function, err error) { |