(f *os.File, output string)
| 127 | } |
| 128 | |
| 129 | func 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 |
| 138 | func Gobuster(ctx context.Context, opts *libgobuster.Options, plugin libgobuster.GobusterPlugin, log *libgobuster.Logger) error { |