From c528a168ee713b7a422643365a58e07be0850c45 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 15 Sep 2021 15:53:06 +0200 Subject: [PATCH] os: add SEEK_SET, SEEK_CUR, and SEEK_END These are deprecated but still used by some code. --- src/os/file.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/os/file.go b/src/os/file.go index 4d2458a5..9fa8f2cf 100644 --- a/src/os/file.go +++ b/src/os/file.go @@ -10,6 +10,15 @@ import ( "syscall" ) +// Seek whence values. +// +// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd. +const ( + SEEK_SET int = io.SeekStart + SEEK_CUR int = io.SeekCurrent + SEEK_END int = io.SeekEnd +) + // Mkdir creates a directory. If the operation fails, it will return an error of // type *PathError. func Mkdir(path string, perm FileMode) error {