MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / String2Int

Function String2Int

common/str.go:63–69  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

61}
62
63func String2Int(str string) int {
64 num, err := strconv.Atoi(str)
65 if err != nil {
66 return 0
67 }
68 return num
69}
70
71func StringsContains(strs []string, str string) bool {
72 for _, s := range strs {

Callers 2

SearchChannelsFunction · 0.92
SearchTagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected