(name string)
| 72 | } |
| 73 | |
| 74 | func (i *SystemInfo) Output(name string) (Output, error) { |
| 75 | if i == nil { |
| 76 | return Output{}, nil |
| 77 | } |
| 78 | |
| 79 | for _, output := range i.Outputs { |
| 80 | if output.Name == name { |
| 81 | return output, nil |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | return Output{}, fmt.Errorf("Output %s not found", name) |
| 86 | } |
| 87 | |
| 88 | func (i *SystemInfo) DefaultOutputs() []Output { |
| 89 | if i == nil { |
no outgoing calls
no test coverage detected