stack
stack copied to clipboard
Package stack implements utilities to capture, manipulate, and format call stacks.
I see we are supporting a lot of go versions https://github.com/go-stack/stack/blob/e5bbd7df104bcb242ace8dd02f8f9ab6b816de08/.github/workflows/test.yml#L14 I think we can drop support for versions prior to go modules https://github.com/go-stack/stack/pull/25#issuecomment-774845654 Keeping the above PR in mind...
Following a rabbit hole of dependencies that starts at https://github.com/tinygo-org/tinygo/issues/2153, I noticed that ``` $ git clone https://github.com/go-stack/stack $ cd stack $ go test ``` succeeds, but ``` $ tinygo...
Allows to record just the pcs from runtime.Callers when an error occurs and convert them to a StackTrace only if the trace is actually needed, e.g. when printing to a...
``` $ go test -trimpath --- FAIL: TestCallStackString (0.00s) stack_test.go:343: got [] want [stack_test.go:362 stack_test.go:335] --- FAIL: TestCallStackMarshalText (0.00s) stack_test.go:357: got [91 93] want [91 115 116 97 99 107...