MCPcopy Create free account
hub / github.com/devploit/nomore403 / initOutputWriter

Function initOutputWriter

cmd/output.go:33–40  ·  view source on GitHub ↗

initOutputWriter opens the output file for writing.

(path string)

Source from the content-addressed store, hash-verified

31
32// initOutputWriter opens the output file for writing.
33func initOutputWriter(path string) error {
34 f, err := os.Create(path)
35 if err != nil {
36 return err
37 }
38 outputWriter = f
39 return nil
40}
41
42// closeOutputWriter flushes and closes the output file.
43// If JSON mode is enabled, writes the accumulated JSON results.

Callers 4

root.goFile · 0.85
TestOutputWriter_JSONFunction · 0.85
TestOutputWriter_JSONLFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestOutputWriter_JSONFunction · 0.68
TestOutputWriter_JSONLFunction · 0.68