MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / Output

Method Output

tools/owl/scan/scanner.go:250–259  ·  view source on GitHub ↗

Output output result to writable io device

(writer io.Writer, res []*Result)

Source from the content-addressed store, hash-verified

248
249// Output output result to writable io device
250func (*Scanner) Output(writer io.Writer, res []*Result) error {
251 bytes, err := json.Marshal(res)
252 if err != nil {
253 return err
254 }
255 if _, err := writer.Write(bytes); err != nil {
256 return err
257 }
258 return nil
259}
260
261// Output send the specified content to the console or file
262func Output(out string, scanner *Scanner, res []*Result) {

Callers 6

InfoFunction · 0.80
WarnFunction · 0.80
md5.goFile · 0.80
run.goFile · 0.80
OutputFunction · 0.80
TestScannerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestScannerFunction · 0.64