type os.File
87 uses
os (current package)
dir.go#L37: func (f *File) Readdir(n int) ([]FileInfo, error) {
dir.go#L66: func (f *File) Readdirnames(n int) (names []string, err error) {
dir.go#L94: func (f *File) ReadDir(n int) ([]DirEntry, error) {
dir_unix.go#L44: func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) {
exec.go#L60: Files []*File
file.go#L57: func (f *File) Name() string { return f.name }
file.go#L115: func (f *File) Read(b []byte) (n int, err error) {
file.go#L127: func (f *File) ReadAt(b []byte, off int64) (n int, err error) {
file.go#L150: func (f *File) ReadFrom(r io.Reader) (n int64, err error) {
file.go#L161: func genericReadFrom(f *File, r io.Reader) (int64, error) {
file.go#L172: func (f *File) Write(b []byte) (n int, err error) {
file.go#L200: func (f *File) WriteAt(b []byte, off int64) (n int, err error) {
file.go#L234: func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
file.go#L250: func (f *File) WriteString(s string) (n int, err error) {
file.go#L317: func Open(name string) (*File, error) {
file.go#L326: func Create(name string) (*File, error) {
file.go#L336: func OpenFile(name string, flag int, perm FileMode) (*File, error) {
file.go#L370: func (f *File) wrapErr(op string, err error) error {
file.go#L543: func (f *File) Chmod(mode FileMode) error { return f.chmod(mode) }
file.go#L569: func (f *File) SetDeadline(t time.Time) error {
file.go#L577: func (f *File) SetReadDeadline(t time.Time) error {
file.go#L587: func (f *File) SetWriteDeadline(t time.Time) error {
file.go#L593: func (f *File) SyscallConn() (syscall.RawConn, error) {
file_posix.go#L21: func (f *File) Close() error {
file_posix.go#L30: func (f *File) read(b []byte) (n int, err error) {
file_posix.go#L39: func (f *File) pread(b []byte, off int64) (n int, err error) {
file_posix.go#L47: func (f *File) write(b []byte) (n int, err error) {
file_posix.go#L55: func (f *File) pwrite(b []byte, off int64) (n int, err error) {
file_posix.go#L90: func (f *File) chmod(mode FileMode) error {
file_posix.go#L138: func (f *File) Chown(uid, gid int) error {
file_posix.go#L151: func (f *File) Truncate(size int64) error {
file_posix.go#L164: func (f *File) Sync() error {
file_posix.go#L193: func (f *File) Chdir() error {
file_posix.go#L204: func (f *File) setDeadline(t time.Time) error {
file_posix.go#L212: func (f *File) setReadDeadline(t time.Time) error {
file_posix.go#L220: func (f *File) setWriteDeadline(t time.Time) error {
file_posix.go#L229: func (f *File) checkValid(op string) error {
file_unix.go#L75: func (f *File) Fd() uintptr {
file_unix.go#L101: func NewFile(fd uintptr, name string) *File {
file_unix.go#L122: func newFile(fd uintptr, name string, kind newFileKind) *File {
file_unix.go#L127: f := &File{&file{
file_unix.go#L193: func epipecheck(file *File, e error) {
file_unix.go#L205: func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
file_unix.go#L268: func (f *File) seek(offset int64, whence int) (ret int64, err error) {
pipe_linux.go#L11: func Pipe() (r *File, w *File, err error) {
rawconn.go#L15: file *File
rawconn.go#L45: func newRawConn(file *File) (*rawConn, error) {
readfrom_linux.go#L14: func (f *File) readFrom(r io.Reader) (written int64, handled bool, err error) {
readfrom_linux.go#L31: src, ok := r.(*File)
removeall_at.go#L58: func removeAllFrom(parent *File, base string) error {
removeall_at.go#L170: func openFdAt(dirfd int, name string) (*File, error) {
stat_unix.go#L15: func (f *File) Stat() (FileInfo, error) {
tempfile.go#L30: func CreateTemp(dir, pattern string) (*File, error) {
types.go#L16: type File struct {
os/exec
exec.go#L123: ExtraFiles []*os.File
exec.go#L139: childFiles []*os.File
exec.go#L244: func (c *Cmd) stdin() (f *os.File, err error) {
exec.go#L254: if f, ok := c.Stdin.(*os.File); ok {
exec.go#L278: func (c *Cmd) stdout() (f *os.File, err error) {
exec.go#L282: func (c *Cmd) stderr() (f *os.File, err error) {
exec.go#L289: func (c *Cmd) writerDescriptor(w io.Writer) (f *os.File, err error) {
exec.go#L299: if f, ok := w.(*os.File); ok {
exec.go#L404: c.childFiles = make([]*os.File, 0, 3+len(c.ExtraFiles))
exec.go#L405: type F func(*Cmd) (*os.File, error)
exec.go#L596: *os.File
go.uber.org/zap
sink.go#L61: openFile func(string, int, os.FileMode) (*os.File, error) // type matches os.OpenFile
io/ioutil
tempfile.go#L24: func TempFile(dir, pattern string) (f *os.File, err error) {
net
fd_unix.go#L193: func (fd *netFD) dup() (f *os.File, err error) {
file.go#L21: func FileConn(f *os.File) (c Conn, err error) {
file.go#L33: func FileListener(f *os.File) (ln Listener, err error) {
file.go#L45: func FilePacketConn(f *os.File) (c PacketConn, err error) {
file_unix.go#L15: func dupSocket(f *os.File) (int, error) {
file_unix.go#L30: func newFileFD(f *os.File) (*netFD, error) {
file_unix.go#L70: func fileConn(f *os.File) (Conn, error) {
file_unix.go#L89: func fileListener(f *os.File) (Listener, error) {
file_unix.go#L104: func filePacketConn(f *os.File) (PacketConn, error) {
net.go#L298: func (c *conn) File() (f *os.File, err error) {
parse.go#L18: file *os.File
sendfile_linux.go#L30: f, ok := r.(*os.File)
tcpsock.go#L331: func (l *TCPListener) File() (f *os.File, err error) {
tcpsock_posix.go#L159: func (ln *TCPListener) file() (*os.File, error) {
unixsock.go#L303: func (l *UnixListener) File() (f *os.File, err error) {
unixsock_posix.go#L193: func (ln *UnixListener) file() (*os.File, error) {
testing
cover.go#L81: var f *os.File
testing.go#L437: testlogFile *os.File
testing.go#L1898: var f *os.File