Hi, gophers When reading Go code, one always needs to find the references of a function or a constant. Those references in the _test.go can be very noisy. I'll be great if there is a way to let gopls ignore those files.
I failed to find such a way or configuration in gopls. I've learned that gopls find go files with 'go list'. By now I can only hack into 'go/build/build.go' to add an environment to make 'go list' skip the Test or XTest. I wonder if there is a better way to do that? Thanks for your time. -- 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 visit https://groups.google.com/d/msgid/golang-nuts/CA%2BhP-7snsX7dzfmE-gBFEQyPj_z4brjkQJ7FPunSEL5twmH-7g%40mail.gmail.com.