Files
err/stacktrace.go
zeekay 3c3ea2449c chore: initial commit — tree had no git at all
github.com/luxfi/err existed only as loose files: no .git, no history, no remote. Sweeps that
look for a .git directory could not see it, and an rm -rf would have destroyed
it with nothing to recover from.

Committed as-is; no source modified.

NOTE: no remote. This is still one copy in one place.
2026-07-26 04:41:01 -07:00

13 lines
269 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package err
import "runtime"
func GetStacktrace(all bool) string {
buf := make([]byte, 1<<16)
n := runtime.Stack(buf, all)
return string(buf[:n])
}