func init() { … } func Test(t *testing.T) { … } type Zip … // writeProxyFiles collects all the module content from ar and writes // files in the format of the proxy URL space, so that the 'proxy' directory // can be used in a GOPROXY=file:/// URL. func writeProxyFiles(t *testing.T, proxy string, ar *txtar.Archive) { … }