mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-02 21:39:25 +00:00
21 lines
494 B
Go
21 lines
494 B
Go
|
//go:build !errtrace
|
||
|
// +build !errtrace
|
||
|
|
||
|
package errors
|
||
|
|
||
|
import "runtime"
|
||
|
|
||
|
// IncludesStacktrace is a compile-time flag used to indicate
|
||
|
// whether to include stacktraces on error wrap / creation.
|
||
|
const IncludesStacktrace = false
|
||
|
|
||
|
type trace struct{}
|
||
|
|
||
|
// set will set the actual trace value
|
||
|
// only when correct build flag is set.
|
||
|
func (trace) set([]runtime.Frame) {}
|
||
|
|
||
|
// value returns the actual trace value
|
||
|
// only when correct build flag is set.
|
||
|
func (trace) value() Callers { return nil }
|