(names []string)
| 113 | } |
| 114 | |
| 115 | func inputs(names []string) []runner.Input { |
| 116 | inputs := []runner.Input{} |
| 117 | |
| 118 | for _, n := range names { |
| 119 | file, err := os.Open(n) |
| 120 | if err != nil { |
| 121 | log.Fatal(fmt.Errorf("error reading from file %s: %v", n, err)) |
| 122 | } |
| 123 | |
| 124 | inputs = append(inputs, runner.Input{Type: runner.InputURL, Data: file}) |
| 125 | } |
| 126 | |
| 127 | return inputs |
| 128 | } |
| 129 | |
| 130 | func headers(args []string) http.Header { |
| 131 | headers := make(http.Header) |