MCPcopy
hub / github.com/labstack/echo / Duration

Method Duration

binder.go:1179–1181  ·  view source on GitHub ↗

Duration binds parameter to time.Duration variable

(sourceParam string, dest *time.Duration)

Source from the content-addressed store, hash-verified

1177
1178// Duration binds parameter to time.Duration variable
1179func (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
1184func (b *ValueBinder) MustDuration(sourceParam string, dest *time.Duration) *ValueBinder {

Calls 1

durationMethod · 0.95