From: Jaana Burcu Dogan Date: Fri, 2 Sep 2016 06:28:26 +0000 (-0700) Subject: path/filepath: use new style deprecation message X-Git-Tag: go1.8beta1~1512 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0318d80e51ff148f3a94008b59b36d601846152e;p=gostls13.git path/filepath: use new style deprecation message Change-Id: I242a8960583e333f372929aad4adb8efbe441cd4 Reviewed-on: https://go-review.googlesource.com/28413 Reviewed-by: Brad Fitzpatrick Run-TryBot: Jaana Burcu Dogan TryBot-Result: Gobot Gobot --- diff --git a/src/path/filepath/path_unix.go b/src/path/filepath/path_unix.go index 2d242cc0b5..dddcac0a5c 100644 --- a/src/path/filepath/path_unix.go +++ b/src/path/filepath/path_unix.go @@ -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) }