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

Function Stringify

github/strings.go:27–37  ·  view source on GitHub ↗

Stringify attempts to create a reasonable string representation of types in the GitHub library. It does things like resolve pointers to their values and omits struct fields with nil values.

(message any)

Source from the content-addressed store, hash-verified

25// the GitHub library. It does things like resolve pointers to their values
26// and omits struct fields with nil values.
27func Stringify(message any) string {
28 buf := bufferPool.Get().(*bytes.Buffer)
29 defer func() {
30 buf.Reset()
31 bufferPool.Put(buf)
32 }()
33
34 v := reflect.ValueOf(message)
35 stringifyValue(buf, v)
36 return buf.String()
37}
38
39// stringifyValue was heavily inspired by the goprotobuf library.
40

Callers 15

mainFunction · 0.92
mainFunction · 0.92
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85

Calls 4

stringifyValueFunction · 0.85
ResetMethod · 0.80
GetMethod · 0.45
StringMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…