Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 433 Bytes
package genny
import (
type Results struct {
Files []File
Commands []*exec.Cmd
Requests []RequestResult
func (r Results) Find(s string) (File, error) {
for _, f := range r.Files {
if s == f.Name() {
return f, nil
return nil, fmt.Errorf("%s not found", s)
type RequestResult struct {
Request *http.Request
Response *http.Response
Client *http.Client
Error error
You can’t perform that action at this time.