MCPcopy Index your code
hub / github.com/OJ/gobuster / writeToFile

Function writeToFile

cli/gobuster.go:129–135  ·  view source on GitHub ↗
(f *os.File, output string)

Source from the content-addressed store, hash-verified

127}
128
129func writeToFile(f *os.File, output string) error {
130 _, err := fmt.Fprintf(f, "%s\n", output)
131 if err != nil {
132 return fmt.Errorf("[!] Unable to write to file %w", err)
133 }
134 return nil
135}
136
137// Gobuster is the main entry point for the CLI
138func Gobuster(ctx context.Context, opts *libgobuster.Options, plugin libgobuster.GobusterPlugin, log *libgobuster.Logger) error {

Callers 1

resultWorkerFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected