MCPcopy Index your code
hub / github.com/google/go-github / loadOperationsFile

Function loadOperationsFile

tools/metadata/metadata.go:201–212  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

199}
200
201func 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
214func addOperation(ops []*operation, filename, opName, docURL string) []*operation {
215 for _, op := range ops {

Callers 1

opsFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…