diff options
| author | Benny Siegert <bsiegert@gmail.com> | 2010-11-30 17:17:45 -0800 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2010-11-30 17:17:45 -0800 |
| commit | b06dc26a58df0a79e6be3004484809ffd2c60d74 (patch) | |
| tree | ad513997489aa9d89cf5442e2eb9b409bafd84ad /src/pkg/path/path_unix.go | |
| parent | 555feea117532a5c033478997e1ce9b77b4f8eea (diff) | |
| download | go-b06dc26a58df0a79e6be3004484809ffd2c60d74.tar.xz | |
path: Windows support for Split
Make Split work on backslashes as well as on slashes under Windows
and support the "C:filename" special case. Also add corresponding
tests.
R=r, rsc, PeterGo, r2, brainman
CC=golang-dev
https://golang.org/cl/3008041
Diffstat (limited to 'src/pkg/path/path_unix.go')
| -rw-r--r-- | src/pkg/path/path_unix.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pkg/path/path_unix.go b/src/pkg/path/path_unix.go new file mode 100644 index 0000000000..7e8c5eb8b9 --- /dev/null +++ b/src/pkg/path/path_unix.go @@ -0,0 +1,11 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package path + +const ( + DirSeps = `/` // directory separators + VolumeSeps = `` // volume separators + PathSeps = DirSeps + VolumeSeps // all path separators +) |
