11 lines
154 B
Go
11 lines
154 B
Go
|
package lib
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
)
|
||
|
|
||
|
func ToSlashPath(path string) string {
|
||
|
cleanPath := filepath.Clean(path)
|
||
|
return filepath.ToSlash(cleanPath)
|
||
|
}
|