os: add SEEK_SET, SEEK_CUR, and SEEK_END
These are deprecated but still used by some code.
Этот коммит содержится в:
родитель
88b9c27dbf
коммит
c528a168ee
1 изменённых файлов: 9 добавлений и 0 удалений
|
@ -10,6 +10,15 @@ import (
|
||||||
"syscall"
|
"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
|
// Mkdir creates a directory. If the operation fails, it will return an error of
|
||||||
// type *PathError.
|
// type *PathError.
|
||||||
func Mkdir(path string, perm FileMode) error {
|
func Mkdir(path string, perm FileMode) error {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче