MCPcopy Create free account
hub / github.com/Tylous/SourcePoint / Readfile

Function Readfile

Utils/Utils.go:26–32  ·  view source on GitHub ↗
(inputFile string)

Source from the content-addressed store, hash-verified

24}
25
26func Readfile(inputFile string) string {
27 output, err := os.ReadFile(inputFile)
28 if err != nil {
29 log.Fatal(err)
30 }
31 return string(output)
32}
33
34func Writefile(outFile, result string) {
35 cf, err := os.OpenFile(outFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)

Callers 1

GenerateProfileFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected