MCPcopy Create free account
hub / github.com/google/go-github / updateDocs

Function updateDocs

tools/metadata/metadata.go:357–359  ·  view source on GitHub ↗

updateDocs updates the code comments in dir with doc urls from metadata.

(opsFile *operationsFile, dir string)

Source from the content-addressed store, hash-verified

355
356// updateDocs updates the code comments in dir with doc urls from metadata.
357func updateDocs(opsFile *operationsFile, dir string) error {
358 return visitServiceMethods(dir, true, updateDocsVisitor(opsFile))
359}
360
361type nodeVisitor func(serviceMethod string, fn *ast.FuncDecl, cmap ast.CommentMap) error
362

Callers 1

RunMethod · 0.85

Calls 2

visitServiceMethodsFunction · 0.85
updateDocsVisitorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…