From: Joe Tsai Date: Tue, 5 Apr 2016 18:29:15 +0000 (-0700) Subject: os: deprecate os.SEEK_SET, os.SEEK_CUR, and os.SEEK_END X-Git-Tag: go1.7beta1~890 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=260ea689992c4d4eccbebdc2750c707213934f50;p=gostls13.git os: deprecate os.SEEK_SET, os.SEEK_CUR, and os.SEEK_END CL/19862 introduced the same set of constants to the io package. We should steer users away from the os.SEEK* versions and towards the io.Seek* versions. Updates #6885 Change-Id: I96ec5be3ec3439e1295c937159dadaf1ebfb2737 Reviewed-on: https://go-review.googlesource.com/21540 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/os/file.go b/src/os/file.go index 6b1ecbc34e..74d3c9f963 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -66,6 +66,8 @@ const ( ) // Seek whence values. +// +// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd. const ( SEEK_SET int = 0 // seek relative to the origin of the file SEEK_CUR int = 1 // seek relative to the current offset