MCPcopy Create free account
hub / github.com/Tylous/ZipExec / Writefile

Function Writefile

ZipExec.go:18–24  ·  view source on GitHub ↗
(outFile, result string)

Source from the content-addressed store, hash-verified

16}
17
18func Writefile(outFile, result string) {
19 cf, err := os.OpenFile(outFile, os.O_CREATE|os.O_WRONLY, 0644)
20 check(err)
21 defer cf.Close()
22 _, err = cf.Write([]byte(result))
23 check(err)
24}
25
26type JScriptLoader struct {
27 Variables map[string]string

Callers 1

mainFunction · 0.85

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected