MCPcopy Create free account
hub / github.com/biningo/note-gin / StrToInt

Function StrToInt

pkg/utils/StrToInt.go:8–14  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

6)
7
8func StrToInt(val string) int {
9 v1, err := strconv.ParseInt(val, 10, 64)
10 if err != nil {
11 log.Println(err)
12 }
13 return int(v1)
14}

Callers 8

GetArticleByPageFunction · 0.92
GetSubFileFunction · 0.92
DeleteBookFunction · 0.92
GetSubFoldersFunction · 0.92
DeleteFunction · 0.92
GetArticleDetailFunction · 0.92
DeleteFunction · 0.92
ArticleRecoverFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected