(filename string)
| 199 | } |
| 200 | |
| 201 | func loadOperationsFile(filename string) (*operationsFile, error) { |
| 202 | b, err := os.ReadFile(filename) |
| 203 | if err != nil { |
| 204 | return nil, err |
| 205 | } |
| 206 | var opsFile operationsFile |
| 207 | err = yaml.Unmarshal(b, &opsFile) |
| 208 | if err != nil { |
| 209 | return nil, err |
| 210 | } |
| 211 | return &opsFile, nil |
| 212 | } |
| 213 | |
| 214 | func addOperation(ops []*operation, filename, opName, docURL string) []*operation { |
| 215 | for _, op := range ops { |
no outgoing calls
no test coverage detected
searching dependent graphs…