()
| 377 | } |
| 378 | |
| 379 | func (d *Decoder) DecodeDuration() (time.Duration, error) { |
| 380 | n, err := d.DecodeInt64() |
| 381 | if err != nil { |
| 382 | return 0, err |
| 383 | } |
| 384 | return time.Duration(n), nil |
| 385 | } |
| 386 | |
| 387 | // DecodeInterface decodes value into interface. It returns following types: |
| 388 | // - nil, |
nothing calls this directly
no test coverage detected