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

Method bools

binder.go:967–979  ·  view source on GitHub ↗
(sourceParam string, values []string, dest *[]bool)

Source from the content-addressed store, hash-verified

965}
966
967func (b *ValueBinder) bools(sourceParam string, values []string, dest *[]bool) *ValueBinder {
968 tmp := make([]bool, len(values))
969 for i, v := range values {
970 b.bool(sourceParam, v, &tmp[i])
971 if b.failFast && b.errors != nil {
972 return b
973 }
974 }
975 if b.errors == nil {
976 *dest = tmp
977 }
978 return b
979}
980
981// Bools binds parameter values to slice of bool variables
982func (b *ValueBinder) Bools(sourceParam string, dest *[]bool) *ValueBinder {

Callers 2

bindWithDelimiterMethod · 0.95
boolsValueMethod · 0.95

Calls 1

boolMethod · 0.95

Tested by

no test coverage detected