MustDuration requires parameter value to exist to bind to time.Duration variable. Returns error when value does not exist
(sourceParam string, dest *time.Duration)
| 1182 | |
| 1183 | // MustDuration requires parameter value to exist to bind to time.Duration variable. Returns error when value does not exist |
| 1184 | func (b *ValueBinder) MustDuration(sourceParam string, dest *time.Duration) *ValueBinder { |
| 1185 | return b.duration(sourceParam, dest, true) |
| 1186 | } |
| 1187 | |
| 1188 | func (b *ValueBinder) duration(sourceParam string, dest *time.Duration, valueMustExist bool) *ValueBinder { |
| 1189 | if b.failFast && b.errors != nil { |