What version of Go are you using (go version)?
go 1.10.3 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Windows 7, Core I7, x64
What did you do?
filepath.Clean(`\\somepath\dir\`)
What did you expect to see?
\\somepath\dir (without trailing slash as per documentation)
What did you see instead?
\\somepath\dir\ (with trailing shash)
Seems that problem is in two Windows slashes at the beginning, all other cases work just fine.
What version of Go are you using (
go version)?go 1.10.3 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env)?Windows 7, Core I7, x64
What did you do?
What did you expect to see?
\\somepath\dir(without trailing slash as per documentation)What did you see instead?
\\somepath\dir\(with trailing shash)Seems that problem is in two Windows slashes at the beginning, all other cases work just fine.