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

Method Strings

binder.go:284–295  ·  view source on GitHub ↗

Strings binds parameter values to slice of string

(sourceParam string, dest *[]string)

Source from the content-addressed store, hash-verified

282
283// Strings binds parameter values to slice of string
284func (b *ValueBinder) Strings(sourceParam string, dest *[]string) *ValueBinder {
285 if b.failFast && b.errors != nil {
286 return b
287 }
288
289 value := b.ValuesFunc(sourceParam)
290 if value == nil {
291 return b
292 }
293 *dest = value
294 return b
295}
296
297// MustStrings requires parameter values to exist to bind to slice of string variables. Returns error when value does not exist
298func (b *ValueBinder) MustStrings(sourceParam string, dest *[]string) *ValueBinder {

Calls

no outgoing calls

Tested by 2

TestValueBinder_StringsFunction · 0.64