MCPcopy Create free account
hub / github.com/bufbuild/buf / ModuleDebugString

Function ModuleDebugString

private/bufpkg/bufmodule/bufmoduledebug/bufmoduledebug.go:43–49  ·  view source on GitHub ↗

ModuleDebugString gets a debug string with Module information. This can be printed to stderr, debug logged, etc, while debugging.

(ctx context.Context, module bufmodule.Module)

Source from the content-addressed store, hash-verified

41//
42// This can be printed to stderr, debug logged, etc, while debugging.
43func ModuleDebugString(ctx context.Context, module bufmodule.Module) (string, error) {
44 printer := indent.NewPrinter(" ")
45 if err := printModule(ctx, printer, module); err != nil {
46 return "", err
47 }
48 return printer.String()
49}
50
51// ModuleReadBucketDebugString gets a debug string with ModuleReadBucket information.
52//

Callers

nothing calls this directly

Calls 3

StringMethod · 0.95
NewPrinterFunction · 0.92
printModuleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…