Involved Source Files Package stack is used for parsing stacks from `runtime.Stack`.scan.gostacks.go
Package-Level Type Names (total 3, in which 1 is exported)
/* sort exporteds by: | */
Stack represents a single Goroutine's stack. A set of all functions in the stack, The first function on the stack. Full, raw stack trace.idint // e.g. 'running', 'chan receive' FirstFunction returns the name of the first function on the stack. Full returns the full stack trace for this goroutine. HasFunction reports whether the stack has the given function
anywhere in it. ID returns the goroutine ID. State returns the Goroutine's state.( Stack) String() string
Stack : expvar.Var
Stack : fmt.Stringer
Stack : context.stringer
Stack : github.com/aws/smithy-go/middleware.stringer
Stack : runtime.stringer
func All() []Stack
func Current() Stack
func getStacks(all bool) []Stack
func go.uber.org/goleak.filterStacks(stacks []Stack, skipID int, opts *goleak.opts) []Stack
func go.uber.org/goleak.filterStacks(stacks []Stack, skipID int, opts *goleak.opts) []Stack
func go.uber.org/goleak.isStdLibStack(s Stack) bool
func go.uber.org/goleak.isSyscallStack(s Stack) bool
func go.uber.org/goleak.isTestStack(s Stack) bool
func go.uber.org/goleak.isTraceStack(s Stack) bool
scanner provides a bufio.Scanner the ability to Unscan,
which allows the current token to be read again
after the next Scan.Scanner*bufio.Scanner // Buffer used as argument to split. // Scan has finished. // Count of successive empty tokens. // End of data in buf. // Sticky error. // Maximum size of a token; modified by tests. // The reader provided by the client. // Scan has been called; buffer is in use. // The function to split the tokens. // First non-processed byte in buf. // Last token returned by split.unscannedbool Buffer sets the initial buffer to use when scanning
and the maximum size of buffer that may be allocated during scanning.
The maximum token size must be less than the larger of max and cap(buf).
If max <= cap(buf), [Scanner.Scan] will use this buffer only and do no allocation.
By default, [Scanner.Scan] uses an internal buffer and sets the
maximum token size to [MaxScanTokenSize].
Buffer panics if it is called after scanning has started. Bytes returns the most recent token generated by a call to [Scanner.Scan].
The underlying array may point to data that will be overwritten
by a subsequent call to Scan. It does no allocation. Err returns the first non-EOF error that was encountered by the [Scanner].(*scanner) Scan() bool Split sets the split function for the [Scanner].
The default split function is [ScanLines].
Split panics if it is called after scanning has started. Text returns the most recent token generated by a call to [Scanner.Scan]
as a newly allocated string holding its bytes. Unscan stops the scanner from advancing its position
for the next Scan.
Bytes and Text will return the same token after next Scan
that they do right now. advance consumes n bytes of the buffer. It reports whether the advance was legal. setErr records the first error encountered.
func newScanner(r io.Reader) *scanner
Parses a single function from the given line.
The line is in one of these formats:
example.com/path/to/package.funcName(args...)
example.com/path/to/package.(*typeName).funcName(args...)
created by example.com/path/to/package.funcName
created by example.com/path/to/package.funcName in goroutine [...]
Also reports whether the line was a "created by" line.
parseGoStackHeader parses a stack header that looks like:
goroutine 643 [runnable]:\n
And returns the goroutine ID, and the state.
Package-Level Constants (only one, which is unexported)