// In sets the current directory as an import path.

In sets the current directory as an import path.
// In sets the current directory as an import path .
func (g *GopathTest) In(pkg string) {
	g.pkg = pkg
	p := g.Path(pkg)
	err := os.Chdir(p)
	if err != nil {
		g.Fatal(err)
	}
	g.current = p
}
func ( g * GopathTest ) In ( pkg string ) { g . pkg = pkg p := g . Path ( pkg ) err := os . Chdir ( p ) if err != nil { g . Fatal ( err ) } g . current = p }
In sets the current directory as an import path.
In sets the current directory as an import path .