MCPcopy Create free account
hub / github.com/maruel/panicparse / Call

Struct Call

stack/stack.go:337–376  ·  view source on GitHub ↗

Call is an item in the stack trace. All paths in this struct are in POSIX format, using "/" as path separator.

Source from the content-addressed store, hash-verified

335//
336// All paths in this struct are in POSIX format, using "/" as path separator.
337type Call struct {
338 // The following are initialized on the first line of the call stack.
339
340 // Func is the fully qualified function name (encoded).
341 Func Func
342 // Args is the call arguments.
343 Args Args
344
345 // The following are initialized on the second line of the call stack.
346
347 // RemoteSrcPath is the full path name of the source file as seen in the
348 // trace.
349 RemoteSrcPath string
350 // Line is the line number.
351 Line int
352 // SrcName is the base file name of the source file.
353 SrcName string
354 // DirSrc is one directory plus the file name of the source file. It is a
355 // subset of RemoteSrcPath.
356 DirSrc string
357
358 // The following are only set if Opts.GuessPaths was set.
359
360 // LocalSrcPath is the full path name of the source file as seen in the host,
361 // if found.
362 LocalSrcPath string
363 // RelSrcPath is the relative path to GOROOT, GOPATH or LocalGoMods.
364 RelSrcPath string
365 // ImportPath is the fully qualified import path as found on disk (when
366 // Opts.GuessPaths was set). Defaults to Func.ImportPath otherwise.
367 //
368 // In the case of package "main", it returns the underlying path to the main
369 // package instead of "main" if Opts.GuessPaths was set.
370 ImportPath string
371 // Location is the source location, if determined.
372 Location Location
373
374 // Disallow initialization with unnamed parameters.
375 _ struct{}
376}
377
378// Init initializes RemoteSrcPath, SrcName, DirName and Line.
379//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected