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

Method MustBool

binder.go:922–924  ·  view source on GitHub ↗

MustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist

(sourceParam string, dest *bool)

Source from the content-addressed store, hash-verified

920
921// MustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist
922func (b *ValueBinder) MustBool(sourceParam string, dest *bool) *ValueBinder {
923 return b.boolValue(sourceParam, dest, true)
924}
925
926func (b *ValueBinder) boolValue(sourceParam string, dest *bool, valueMustExist bool) *ValueBinder {
927 if b.failFast && b.errors != nil {

Callers 1

TestValueBinder_BoolFunction · 0.80

Calls 1

boolValueMethod · 0.95

Tested by 1

TestValueBinder_BoolFunction · 0.64