From b06dc26a58df0a79e6be3004484809ffd2c60d74 Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Tue, 30 Nov 2010 17:17:45 -0800 Subject: 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 --- src/pkg/path/path_unix.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/pkg/path/path_unix.go (limited to 'src/pkg/path/path_unix.go') 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 +) -- cgit v1.3