Go already supports both approaches. Internal tests of package p are
themselves in package p. External tests are in package p_test. In
both cases the tests can be in the same directory in xxx_test.go
files. This is documented at
https://golang.org/cmd/go/#hdr-Test_packages . Effective Go doesn't
seem to say anything about testing today. If we think we need to say
something, a blog article might be a better approach.
Ian