Duration binds parameter to time.Duration variable
(sourceParam string, dest *time.Duration)
| 1177 | |
| 1178 | // Duration binds parameter to time.Duration variable |
| 1179 | func (b *ValueBinder) Duration(sourceParam string, dest *time.Duration) *ValueBinder { |
| 1180 | return b.duration(sourceParam, dest, false) |
| 1181 | } |
| 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 { |