// WriteModuleVersion creates a directory in the proxy dir for a module. func WriteModuleVersion(rootDir, module, ver string, files map[string][]byte) (rerr error) { … } func checkClose(name string, closer io.Closer, err *error) { … } // ToURL returns the file uri for a proxy directory. func ToURL(dir string) string { … }