AsBool returns v's underlying value. It returns false if v is nil or v's underlying type is not TypeBool.
()
| 402 | // AsBool returns v's underlying value. It returns false if v is nil or v's |
| 403 | // underlying type is not TypeBool. |
| 404 | func (v *Value) AsBool() bool { |
| 405 | if v != nil && TypeUnder(v.Type()) == TypeBool { |
| 406 | return v.Bool() |
| 407 | } |
| 408 | return false |
| 409 | } |
| 410 | |
| 411 | func (v *Value) AsInt() int64 { |
| 412 | if v != nil { |