1
0
mirror of https://github.com/golang/go synced 2024-11-18 04:04:49 -07:00

path/filepath: use new style deprecation message

Change-Id: I242a8960583e333f372929aad4adb8efbe441cd4
Reviewed-on: https://go-review.googlesource.com/28413
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Jaana Burcu Dogan <jbd@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Jaana Burcu Dogan 2016-09-01 23:28:26 -07:00
parent 0e7e43688d
commit 0318d80e51

View File

@ -20,6 +20,8 @@ func volumeNameLen(path string) int {
}
// HasPrefix exists for historical compatibility and should not be used.
//
// Deprecated: Use strings.HasPrefix instead.
func HasPrefix(p, prefix string) bool {
return strings.HasPrefix(p, prefix)
}