With GORACE set, in path like D:\<fullpath> only "D" can stripped and
what remains is :\<fullpath>
":" and later characters in GORACE are ignored.
Example:
set GORACE="strip_path_prefix=D:\sources"
D:\sources\gopath\src\learn>go run -race race.go
==================
WARNING: DATA RACE
Read by goroutine 4:
main.func┬╖002()
:/sources/gopath/src/learn/race.go:37 +0x56
Previous write by goroutine 1:
main.main()
:/sources/gopath/src/learn/race.go:30 +0x1af
Goroutine 4 (running) created at:
main.main()
:/sources/gopath/src/learn/race.go:38 +0x19f
Goroutine 1 (running) created at:
_rt0_go()
:/sources/golang/src/pkg/runtime/asm_amd64.s:95 +0x117
==================
Found 1 data race(s)
exit status 66