func (t *Temporary) Reset() {
	if t.update {
		build.Default.GOPATH = t.Orig
		os.Setenv("GOPATH", t.Orig)
	}
	if t.deleteDir {
		if err := os.RemoveAll(t.Path); err != nil {
			log.Println(err)
		}
	}
}
// Reset resets the original GOPATH and deletes the temporary directory.
Reset resets the original GOPATH and deletes the temporary directory.
// Reset resets the original GOPATH and deletes the temporary directory .
func (t *Temporary) Reset() {
	if t.update {
		build.Default.GOPATH = t.Orig
		os.Setenv("GOPATH", t.Orig)
	}
	if t.deleteDir {
		if err := os.RemoveAll(t.Path); err != nil {
			log.Println(err)
		}
	}
}
func ( t * Temporary ) Reset ( ) { if t . update { build . Default . GOPATH = t . Orig os . Setenv ( " " , t . Orig ) } if t . deleteDir { if err := os . RemoveAll ( t . Path ) ; err != nil { log . Println ( err ) } } }
Reset resets the original GOPATH and deletes the temporary directory.
Reset resets the original GOPATH and deletes the temporary directory .