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

Struct Func

stack/stack.go:23–43  ·  view source on GitHub ↗

Func is a function call in a goroutine stack trace.

Source from the content-addressed store, hash-verified

21
22// Func is a function call in a goroutine stack trace.
23type Func struct {
24 // Complete is the complete reference. It can be ambiguous in case where a
25 // path contains dots.
26 Complete string
27 // ImportPath is the directory name for this function reference, or "main" if
28 // it was in package main. The package name may not match.
29 ImportPath string
30 // DirName is the directory name containing the package in which the function
31 // is. Normally this matches the package name, but sometimes there's smartass
32 // folks that use a different directory name than the package name.
33 DirName string
34 // Name is the function name or fully quality method name.
35 Name string
36 // IsExported is true if the function is exported.
37 IsExported bool
38 // IsPkgMain is true if it is in the main package.
39 IsPkgMain bool
40
41 // Disallow initialization with unnamed parameters.
42 _ struct{}
43}
44
45// Init parses the raw function call line from a goroutine stack trace.
46//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected