]> Cypherpunks repositories - gostls13.git/commitdiff
path, path/filepath: clarify and cross-reference packages
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 13 Jun 2017 22:55:33 +0000 (22:55 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Jun 2017 02:54:44 +0000 (02:54 +0000)
The path package has a reference to the path/filepath package, so add
a reverse reference.

And clarify the path package doesn't do Windows paths.

Fixes #20117

Change-Id: I65c5ce24e600b32ea20c5821b744bd89f6aff98c
Reviewed-on: https://go-review.googlesource.com/45653
Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/path/filepath/path.go
src/path/path.go

index e35ed5fefda79f44a4b1c60966d27a3ec2e7c83a..c242143c7a31bc881f2bd9ab9d93d58a7ef38098 100644 (file)
@@ -4,6 +4,11 @@
 
 // Package filepath implements utility routines for manipulating filename paths
 // in a way compatible with the target operating system-defined file paths.
+//
+// The filepath package uses either forward slashes or backslashes,
+// depending on the operating system. To process paths such as URLs
+// that always use forward slashes regardless of the operating
+// system, see the path package.
 package filepath
 
 import (
index 76c7814c59d8a0fa268b6d92606e46e8f1fd4275..5c905110a1bd72a4d34e49654d3583c19be5eaf8 100644 (file)
@@ -5,7 +5,10 @@
 // Package path implements utility routines for manipulating slash-separated
 // paths.
 //
-// To manipulate operating system paths, use the path/filepath package.
+// The path package should only be used for paths separated by forward
+// slashes, such as the paths in URLs. This package does not deal with
+// Windows paths with drive letters or backslashes; to manipulate
+// operating system paths, use the path/filepath package.
 package path
 
 import (