github.com/echohead/hub@v2.2.1+incompatible/fixtures/fixtures.go (about) 1 package fixtures 2 3 import ( 4 "os" 5 "path/filepath" 6 ) 7 8 func Path(segment ...string) string { 9 pwd, _ := os.Getwd() 10 p := []string{pwd, "..", "fixtures"} 11 p = append(p, segment...) 12 13 return filepath.Join(p...) 14 }