codeberg.org/gruf/go-errors/v2@v2.3.1/build_nocaller.go (about)

     1  //go:build !errcaller
     2  // +build !errcaller
     3  
     4  package errors
     5  
     6  // IncludesCaller is a compile-time flag used to indicate whether
     7  // to include calling function prefix on error wrap / creation.
     8  const IncludesCaller = false
     9  
    10  type caller struct{}
    11  
    12  // set will set the actual caller value
    13  // only when correct build flag is set.
    14  func (caller) set(string) {}
    15  
    16  // value returns the actual caller value
    17  // only when correct build flag is set.
    18  func (caller) value() string { return "" }