Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path: Documentation regarding / support #17690

Closed
itsjamie opened this issue Oct 31, 2016 · 1 comment
Closed

path: Documentation regarding / support #17690

itsjamie opened this issue Oct 31, 2016 · 1 comment

Comments

@itsjamie
Copy link
Contributor

What version of Go are you using (go version)?

go version go1.7 windows/amd64

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=C:\Users\tjenkins\go-dev\bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\tjenkins\go-dev
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\tjenkins\AppData\Local\Temp\go-build759658326=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1

What did you do?

Creating files on the system and later retrieving them via filepath.Glob. Code further downstream took the returned paths and utilized path.Base to find the base portion, this failed due to the \ vs / difference.

What did you expect to see

Would prefer if the package documentation for path make explicit mention of the lack of support for systems that are not / separated, directing the user to sub package filepath. It mentions slash-separated, which was taken to mean / or \.

Thanks!

@bradfitz bradfitz added this to the Go1.8Maybe milestone Oct 31, 2016
@gopherbot
Copy link

CL https://golang.org/cl/32423 mentions this issue.

@golang golang locked and limited conversation to collaborators Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants