MCPcopy Index your code
hub / github.com/c4milo/github-release / fileSize

Function fileSize

main.go:241–247  ·  view source on GitHub ↗
(file *os.File)

Source from the content-addressed store, hash-verified

239}
240
241func fileSize(file *os.File) (int64, error) {
242 stat, err := file.Stat()
243 if err != nil {
244 return 0, err
245 }
246 return stat.Size(), nil
247}
248
249// Sends HTTP request to Github API
250func doRequest(method, url, contentType string, reqBody io.Reader, bodySize int64) ([]byte, error) {

Callers 1

uploadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected