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

Method MustFloat32

binder.go:1007–1009  ·  view source on GitHub ↗

MustFloat32 requires parameter value to exist to bind to float32 variable. Returns error when value does not exist

(sourceParam string, dest *float32)

Source from the content-addressed store, hash-verified

1005
1006// MustFloat32 requires parameter value to exist to bind to float32 variable. Returns error when value does not exist
1007func (b *ValueBinder) MustFloat32(sourceParam string, dest *float32) *ValueBinder {
1008 return b.floatValue(sourceParam, dest, 32, true)
1009}
1010
1011func (b *ValueBinder) floatValue(sourceParam string, dest any, bitSize int, valueMustExist bool) *ValueBinder {
1012 if b.failFast && b.errors != nil {

Callers 1

TestValueBinder_Float32Function · 0.80

Calls 1

floatValueMethod · 0.95

Tested by 1

TestValueBinder_Float32Function · 0.64