Skip to content

Commit c528a16

Browse files
aykevldeadprogram
authored andcommitted
os: add SEEK_SET, SEEK_CUR, and SEEK_END
These are deprecated but still used by some code.
1 parent 88b9c27 commit c528a16

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/os/file.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ import (
1010
"syscall"
1111
)
1212

13+
// Seek whence values.
14+
//
15+
// Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
16+
const (
17+
SEEK_SET int = io.SeekStart
18+
SEEK_CUR int = io.SeekCurrent
19+
SEEK_END int = io.SeekEnd
20+
)
21+
1322
// Mkdir creates a directory. If the operation fails, it will return an error of
1423
// type *PathError.
1524
func Mkdir(path string, perm FileMode) error {

0 commit comments

Comments
 (0)