Also, Go 1.15 is real old at this point and for these kinds of tests, I would recommend first updating to the latest stable version (which is Go 1.18).
On Sat, Apr 30, 2022 at 8:22 AM 'Dan Kortschak' via golang-nuts < golang-nuts@googlegroups.com> wrote: > On Fri, 2022-04-29 at 23:18 -0700, Zhaoxun Yan wrote: > > And then in that folder you run: > > # go build -race > > Nothing happens, at least in my go1.15 > > The race detector needs to run to detect data races; it's not a static > analysis tool. > > So if you execute the binary that you built with `go build -race` you > should see the race report. > > Dan > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/cd0f1261a31406e92affdabb66dcdba0348bb4ce.camel%40kortschak.io > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfG0Ef1pfK0ef1y2Yq4v_hsoyj0hRQdn9XBC8Aw3PoB5HQ%40mail.gmail.com.