MCPcopy Create free account
hub / github.com/53AI/53AIHub / itoaFS

Function itoaFS

api/controller/file_share.go:131–143  ·  view source on GitHub ↗

itoa 复用 controller/share.go 的实现

(v int64)

Source from the content-addressed store, hash-verified

129
130// itoa 复用 controller/share.go 的实现
131func itoaFS(v int64) string {
132 if v == 0 {
133 return "0"
134 }
135 var buf [20]byte
136 i := len(buf)
137 for v > 0 {
138 i--
139 buf[i] = byte('0' + v%10)
140 v /= 10
141 }
142 return string(buf[i:])
143}

Callers 1

GetFileShareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected