MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / readStringFromFile

Function readStringFromFile

src/toolchain.go:317–336  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

315}
316
317func readStringFromFile(file string) (str string, err error) {
318
319 var content []byte
320 var filename = getPlatformFile(file)
321
322 err = checkFile(filename)
323 if err != nil {
324 return
325 }
326
327 content, err = os.ReadFile(filename)
328 if err != nil {
329 ShowError(err, 0)
330 return
331 }
332
333 str = string(content)
334
335 return
336}
337
338// Netzwerk
339func resolveHostIP() error {

Callers 3

ThreadfinFunction · 0.85
WebFunction · 0.85
DownloadFunction · 0.85

Calls 3

checkFileFunction · 0.85
ShowErrorFunction · 0.85
getPlatformFileFunction · 0.70

Tested by

no test coverage detected