1 Star 0 Fork 0

api-go / govendor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
stub.go 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
package vos
import (
"os"
"time"
)
type FileInfo os.FileInfo
func Stat(name string) (FileInfo, error) {
l("stat", name)
fi, err := os.Stat(name)
return FileInfo(fi), err
}
func Lstat(name string) (FileInfo, error) {
l("lstat", name)
fi, err := os.Lstat(name)
return FileInfo(fi), err
}
func IsNotExist(err error) bool {
return os.IsNotExist(err)
}
func Getwd() (string, error) {
return os.Getwd()
}
func Getenv(key string) string {
return os.Getenv(key)
}
func Open(name string) (*os.File, error) {
l("open", name)
return os.Open(name)
}
func MkdirAll(path string, perm os.FileMode) error {
l("mkdirall", path)
return os.MkdirAll(path, perm)
}
func Remove(name string) error {
l("remove", name)
return os.Remove(name)
}
func RemoveAll(name string) error {
l("removeall", name)
return os.RemoveAll(name)
}
func Create(name string) (*os.File, error) {
l("create", name)
return os.Create(name)
}
func Chmod(name string, mode os.FileMode) error {
l("chmod", name)
return os.Chmod(name, mode)
}
func Chtimes(name string, atime, mtime time.Time) error {
l("chtimes", name)
return os.Chtimes(name, atime, mtime)
}
1
https://gitee.com/netscript/govendor.git
git@gitee.com:netscript/govendor.git
netscript
govendor
govendor
v1.0.9

搜索帮助