15 lines
180 B
Go
15 lines
180 B
Go
|
package main
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
func tempChdir(directory string) string {
|
||
|
wd, _ := os.Getwd()
|
||
|
os.Chdir(directory)
|
||
|
return wd
|
||
|
|
||
|
}
|
||
|
|
||
|
func fixWD(directory string) {
|
||
|
os.Chdir(directory)
|
||
|
}
|