MCPcopy Index your code
hub / github.com/maruel/panicparse / String

Method String

stack/stack.go:149–163  ·  view source on GitHub ↗

String prints the argument as the name if present, otherwise as the value.

()

Source from the content-addressed store, hash-verified

147
148// String prints the argument as the name if present, otherwise as the value.
149func (a *Arg) String() string {
150 if a.Name != "" {
151 return a.Name
152 }
153 if a.IsOffsetTooLarge {
154 return "_"
155 }
156 if a.IsAggregate {
157 return "{" + a.Fields.String() + "}"
158 }
159 if a.Value < uint64(len(zeroToNine)) {
160 return zeroToNine[a.Value : a.Value+1]
161 }
162 return fmt.Sprintf("0x%x", a.Value)
163}
164
165const (
166 // The pointer floor can be below 1MiB (!) on Windows.

Callers 15

TestGomoduleComplexFunction · 0.45
TestGoRunFunction · 0.45
testPanicArgsElidedFunction · 0.45
testPanicMismatchedFunction · 0.45
testPanicRaceFunction · 0.45
testPanicStrFunction · 0.45
testPanicUTF8Function · 0.45
TestPanicwebFunction · 0.45
funcClassFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestGomoduleComplexFunction · 0.36
TestGoRunFunction · 0.36
testPanicArgsElidedFunction · 0.36
testPanicMismatchedFunction · 0.36
testPanicRaceFunction · 0.36
testPanicStrFunction · 0.36
testPanicUTF8Function · 0.36
TestPanicwebFunction · 0.36