()
| 393 | } |
| 394 | |
| 395 | func (v *Value) AsString() string { |
| 396 | if v != nil && TypeUnder(v.Type()) == TypeString { |
| 397 | return DecodeString(v.Bytes()) |
| 398 | } |
| 399 | return "" |
| 400 | } |
| 401 | |
| 402 | // AsBool returns v's underlying value. It returns false if v is nil or v's |
| 403 | // underlying type is not TypeBool. |