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

Method Int

convert.go:51–54  ·  view source on GitHub ↗

Int string to int

()

Source from the content-addressed store, hash-verified

49
50// Int string to int
51func (f Convert) Int() (int, error) {
52 v, err := strconv.ParseInt(f.String(), 10, 32)
53 return int(v), err
54}
55
56// Int8 string to int8
57func (f Convert) Int8() (int8, error) {

Callers 2

ToInt64Function · 0.80
setFieldValueMethod · 0.80

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected