github.com/sandwich-go/boost@v1.3.29/xdebug/race/race_off.go (about)

     1  //go:build !race
     2  // +build !race
     3  
     4  package race
     5  
     6  // Enabled is set to true in the build if the race detector is enabled.
     7  // This is useful to skip tests when the race detector is on.
     8  // This is the same approach as in: https://golang.org/src/internal/race/
     9  const Enabled = false