1 package ospath 2 3 import ( 4 "path" 5 "path/filepath" 6 ) 7 8 // Join joins paths using the target OS's path separator. 9 func Join(os string, elem ...string) string { 10 if os == "windows" { 11 return filepath.Join(elem...) 12 } 13 return path.Join(elem...) 14 } 15