MCPcopy Create free account
hub / github.com/QuantumNous/new-api / String2Int

Function String2Int

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

Source from the content-addressed store, hash-verified

82}
83
84func String2Int(str string) int {
85 num, err := strconv.Atoi(str)
86 if err != nil {
87 return 0
88 }
89 return num
90}
91
92func StringsContains(strs []string, str string) bool {
93 for _, s := range strs {

Callers 3

chatCreatedAtFunction · 0.92
SearchChannelsFunction · 0.92
SearchTagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected