package main import "os" func tempChdir(directory string) string { wd, _ := os.Getwd() os.Chdir(directory) return wd } func fixWD(directory string) { os.Chdir(directory) }