Strings binds parameter values to slice of string
(sourceParam string, dest *[]string)
| 282 | |
| 283 | // Strings binds parameter values to slice of string |
| 284 | func (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 |
| 298 | func (b *ValueBinder) MustStrings(sourceParam string, dest *[]string) *ValueBinder { |
no outgoing calls