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

Function DefaultOpts

stack/context.go:64–76  ·  view source on GitHub ↗

DefaultOpts returns default options to process the snapshot.

()

Source from the content-addressed store, hash-verified

62
63// DefaultOpts returns default options to process the snapshot.
64func DefaultOpts() *Opts {
65 p := runtime.GOROOT()
66 if runtime.GOOS == "windows" {
67 p = strings.Replace(p, pathSeparator, "/", -1)
68 }
69 return &Opts{
70 LocalGOROOT: p,
71 LocalGOPATHs: getGOPATHs(),
72 NameArguments: true,
73 GuessPaths: true,
74 AnalyzeSources: true,
75 }
76}
77
78func (o *Opts) isValid() bool {
79 if !o.GuessPaths && o.AnalyzeSources {

Callers 10

Example_textFunction · 0.92
Example_streamFunction · 0.92
Example_hTMLFunction · 0.92
Example_simpleFunction · 0.92
recoverPanicFunction · 0.92
SnapshotHandlerFunction · 0.92
processFunction · 0.92
defaultOptsFunction · 0.85
TestSnapshot_ToHTMLFunction · 0.85

Calls 1

getGOPATHsFunction · 0.85

Tested by 8

Example_textFunction · 0.74
Example_streamFunction · 0.74
Example_hTMLFunction · 0.74
Example_simpleFunction · 0.74
recoverPanicFunction · 0.74
defaultOptsFunction · 0.68
TestSnapshot_ToHTMLFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…