MCPcopy Index your code
hub / github.com/GetStream/stream-go2 / parseIntValue

Function parseIntValue

utils.go:65–75  ·  view source on GitHub ↗
(values url.Values, key string)

Source from the content-addressed store, hash-verified

63}
64
65func parseIntValue(values url.Values, key string) (val int, exits bool, err error) {
66 v := values.Get(key)
67 if v == "" {
68 return 0, false, nil
69 }
70 i, err := strconv.Atoi(v)
71 if err != nil {
72 return 0, false, err
73 }
74 return i, true, nil
75}
76
77func parseBool(value string) bool {
78 v := strings.ToLower(value)

Callers 3

Test_parseIntValueFunction · 0.85
parseNextMethod · 0.85
parseNextMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by 1

Test_parseIntValueFunction · 0.68