MCPcopy Create free account
hub / github.com/devfeel/mapper / Bool

Method Bool

convert.go:35–37  ·  view source on GitHub ↗

Bool string to bool

()

Source from the content-addressed store, hash-verified

33
34// Bool string to bool
35func (f Convert) Bool() (bool, error) {
36 return strconv.ParseBool(f.String())
37}
38
39// Float32 string to float32
40func (f Convert) Float32() (float32, error) {

Callers 1

setFieldValueMethod · 0.80

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected