mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 21:48:18 -08:00
16 lines
214 B
Go
16 lines
214 B
Go
package testing_init
|
|
|
|
import (
|
|
"os"
|
|
"path"
|
|
"runtime"
|
|
)
|
|
|
|
func init() {
|
|
_, filename, _, _ := runtime.Caller(0)
|
|
dir := path.Join(path.Dir(filename), "..")
|
|
err := os.Chdir(dir)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|