diff options
author | Ayke van Laethem <[email protected]> | 2021-09-15 15:53:06 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-09-15 18:58:17 +0200 |
commit | c528a168ee713b7a422643365a58e07be0850c45 (patch) | |
tree | 3e6f5e2b80ee9e3389d9e7a554d8a6aa243ccd9c | |
parent | 88b9c27dbfc6d4ad86d7138d30956ef3adf68def (diff) | |
download | tinygo-c528a168ee713b7a422643365a58e07be0850c45.tar.gz tinygo-c528a168ee713b7a422643365a58e07be0850c45.zip |
os: add SEEK_SET, SEEK_CUR, and SEEK_END
These are deprecated but still used by some code.
-rw-r--r-- | src/os/file.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/os/file.go b/src/os/file.go index 4d2458a5a..9fa8f2cf1 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 { |