mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
os: add SEEK_SET, SEEK_CUR, and SEEK_END
These are deprecated but still used by some code.
This commit is contained in:
committed by
Ron Evans
parent
88b9c27dbf
commit
c528a168ee
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user