mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
11 lines
357 B
Go
11 lines
357 B
Go
// 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
|
|
)
|