]> Cypherpunks repositories - gostls13.git/commit
path: Windows support for Split
authorBenny Siegert <bsiegert@gmail.com>
Wed, 1 Dec 2010 01:17:45 +0000 (17:17 -0800)
committerRob Pike <r@golang.org>
Wed, 1 Dec 2010 01:17:45 +0000 (17:17 -0800)
commitb06dc26a58df0a79e6be3004484809ffd2c60d74
treead513997489aa9d89cf5442e2eb9b409bafd84ad
parent555feea117532a5c033478997e1ce9b77b4f8eea
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/Makefile
src/pkg/path/path.go
src/pkg/path/path_test.go
src/pkg/path/path_unix.go [new file with mode: 0644]
src/pkg/path/path_windows.go [new file with mode: 0644]