var Hosts … type Server … // NewServer returns a new test-local vcweb server that serves VCS requests // for modules with paths that begin with "vcs-test.golang.org" using the // scripts in cmd/go/testdata/vcstest. func NewServer() (srv *Server, err error) { … } func (srv *Server) Close() error { … } func (srv *Server) WriteCertificateFile() (string, error) { … } // TLSClient returns an http.Client that can talk to the httptest.Server // whose certificate is written to the given file path. func TLSClient(certFile string) (*http.Client, error) { … }