Joe Tsai uploaded a change:
https://go-review.googlesource.com/21540
os: deprecate SEEK_SET and friends
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 #19862
Change-Id: I96ec5be3ec3439e1295c937159dadaf1ebfb2737
---
M src/os/file.go
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/os/file.go b/src/os/file.go
index 6b1ecbc..aa29e08 100644
--- a/src/os/file.go
+++ b/src/os/file.go
@@ -66,6 +66,8 @@
)
// Seek whence values.
+//
+// Deprecated: Please use io.SeekStart and friends.
const (
SEEK_SET int = 0 // seek relative to the origin of the file
SEEK_CUR int = 1 // seek relative to the current offset
--
https://go-review.googlesource.com/21540