From 530489eb50383b110ef9fca0e35b95bb67e6af12 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Fri, 14 Dec 2018 13:57:33 -0800 Subject: [PATCH] fix(std/io): os.SEEK_SET, os.SEEK_CUR, and os.SEEK_END are deprecated --- std/io/stream.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/std/io/stream.go b/std/io/stream.go index 08d0e07..7e78f3d 100644 --- a/std/io/stream.go +++ b/std/io/stream.go @@ -2,6 +2,7 @@ package io import ( "fmt" + "io" "os" "strings" @@ -9,9 +10,9 @@ import ( ) var whence = map[string]int{ - "set": os.SEEK_SET, - "cur": os.SEEK_CUR, - "end": os.SEEK_END, + "set": io.SeekStart, + "cur": io.SeekCurrent, + "end": io.SeekEnd, } type stream struct {