MCPcopy Create free account
hub / github.com/003random/getJS / inputs

Function inputs

main.go:115–128  ·  view source on GitHub ↗
(names []string)

Source from the content-addressed store, hash-verified

113}
114
115func 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
130func headers(args []string) http.Header {
131 headers := make(http.Header)

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected