MCPcopy Index your code
hub / github.com/labstack/echo / MustDurations

Method MustDurations

binder.go:1215–1217  ·  view source on GitHub ↗

MustDurations requires parameter values to exist to bind to slice of time.Duration variables. Returns error when values does not exist

(sourceParam string, dest *[]time.Duration)

Source from the content-addressed store, hash-verified

1213
1214// MustDurations requires parameter values to exist to bind to slice of time.Duration variables. Returns error when values does not exist
1215func (b *ValueBinder) MustDurations(sourceParam string, dest *[]time.Duration) *ValueBinder {
1216 return b.durationsValue(sourceParam, dest, true)
1217}
1218
1219func (b *ValueBinder) durationsValue(sourceParam string, dest *[]time.Duration, valueMustExist bool) *ValueBinder {
1220 if b.failFast && b.errors != nil {

Callers 2

Calls 1

durationsValueMethod · 0.95

Tested by 2