summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-errors/v2/build_notrace.go
blob: acee2e698446eea160962183de02a3eb4704bb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//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 }