1 // +build !windows 2 3 package urlx 4 5 import ( 6 "net/url" 7 ) 8 9 // GetURLFilePath returns the path of a URL that is compatible with the runtime os filesystem 10 func GetURLFilePath(u *url.URL) string { 11 if u == nil { 12 return "" 13 } 14 return u.Path 15 } 16