type os.File
110 uses
os (current package)
dir.go#L40: func (f *File) Readdir(n int) ([]FileInfo, error) {
dir.go#L69: func (f *File) Readdirnames(n int) (names []string, err error) {
dir.go#L97: func (f *File) ReadDir(n int) ([]DirEntry, error) {
dir_unix.go#L47: func (f *File) readdir(n int, mode readdirMode) (names []string, dirents []DirEntry, infos []FileInfo, err error) {
exec.go#L268: Files []*File
file.go#L62: func (f *File) Name() string { return f.name }
file.go#L120: func (f *File) Read(b []byte) (n int, err error) {
file.go#L132: func (f *File) ReadAt(b []byte, off int64) (n int, err error) {
file.go#L155: func (f *File) ReadFrom(r io.Reader) (n int64, err error) {
file.go#L181: *File
file.go#L184: func genericReadFrom(f *File, r io.Reader) (int64, error) {
file.go#L191: func (f *File) Write(b []byte) (n int, err error) {
file.go#L219: func (f *File) WriteAt(b []byte, off int64) (n int, err error) {
file.go#L245: func (f *File) WriteTo(w io.Writer) (n int64, err error) {
file.go#L271: *File
file.go#L274: func genericWriteTo(f *File, w io.Writer) (int64, error) {
file.go#L283: func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
file.go#L299: func (f *File) WriteString(s string) (n int, err error) {
file.go#L369: func Open(name string) (*File, error) {
file.go#L379: func Create(name string) (*File, error) {
file.go#L390: func OpenFile(name string, flag int, perm FileMode) (*File, error) {
file.go#L406: func openDir(name string) (*File, error) {
file.go#L449: func (f *File) wrapErr(op string, err error) error {
file.go#L631: func (f *File) Chmod(mode FileMode) error { return f.chmod(mode) }
file.go#L657: func (f *File) SetDeadline(t time.Time) error {
file.go#L665: func (f *File) SetReadDeadline(t time.Time) error {
file.go#L675: func (f *File) SetWriteDeadline(t time.Time) error {
file.go#L681: func (f *File) SyscallConn() (syscall.RawConn, error) {
file.go#L808: func readFileContents(f *File) ([]byte, error) {
file_posix.go#L19: func (f *File) Close() error {
file_posix.go#L28: func (f *File) read(b []byte) (n int, err error) {
file_posix.go#L37: func (f *File) pread(b []byte, off int64) (n int, err error) {
file_posix.go#L45: func (f *File) write(b []byte) (n int, err error) {
file_posix.go#L53: func (f *File) pwrite(b []byte, off int64) (n int, err error) {
file_posix.go#L88: func (f *File) chmod(mode FileMode) error {
file_posix.go#L136: func (f *File) Chown(uid, gid int) error {
file_posix.go#L149: func (f *File) Truncate(size int64) error {
file_posix.go#L162: func (f *File) Sync() error {
file_posix.go#L199: func (f *File) Chdir() error {
file_posix.go#L210: func (f *File) setDeadline(t time.Time) error {
file_posix.go#L218: func (f *File) setReadDeadline(t time.Time) error {
file_posix.go#L226: func (f *File) setWriteDeadline(t time.Time) error {
file_posix.go#L235: func (f *File) checkValid(op string) error {
file_unix.go#L80: func (f *File) Fd() uintptr {
file_unix.go#L106: func NewFile(fd uintptr, name string) *File {
file_unix.go#L131: func net_newUnixFile(fd int, name string) *File {
file_unix.go#L162: func newFile(fd int, name string, kind newFileKind, nonBlocking bool) *File {
file_unix.go#L163: f := &File{&file{
file_unix.go#L252: func epipecheck(file *File, e error) {
file_unix.go#L264: func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
file_unix.go#L302: func openDirNolog(name string) (*File, error) {
file_unix.go#L349: func (f *File) seek(offset int64, whence int) (ret int64, err error) {
pipe2_unix.go#L13: func Pipe() (r *File, w *File, err error) {
rawconn.go#L15: file *File
rawconn.go#L45: func newRawConn(file *File) (*rawConn, error) {
removeall_at.go#L58: func removeAllFrom(parent *File, base string) error {
removeall_at.go#L168: func openDirAt(dirfd int, name string) (*File, error) {
root.go#L24: func OpenInRoot(dir, name string) (*File, error) {
root.go#L95: func (r *Root) Open(name string) (*File, error) {
root.go#L101: func (r *Root) Create(name string) (*File, error) {
root.go#L110: func (r *Root) OpenFile(name string, flag int, perm FileMode) (*File, error) {
root_unix.go#L78: func rootOpenFileNolog(root *Root, name string, flag int, perm FileMode) (*File, error) {
stat_unix.go#L15: func (f *File) Stat() (FileInfo, error) {
tempfile.go#L35: func CreateTemp(dir, pattern string) (*File, error) {
types.go#L18: type File struct {
zero_copy_linux.go#L18: func (f *File) writeTo(w io.Writer) (written int64, handled bool, err error) {
zero_copy_linux.go#L42: func (f *File) readFrom(r io.Reader) (written int64, handled bool, err error) {
zero_copy_linux.go#L59: func (f *File) spliceToFile(r io.Reader) (written int64, handled bool, err error) {
zero_copy_linux.go#L89: func (f *File) copyFileRange(r io.Reader) (written int64, handled bool, err error) {
zero_copy_linux.go#L98: var src *File
zero_copy_linux.go#L100: case *File:
os/exec
exec.go#L231: ExtraFiles []*os.File
exec.go#L525: func (c *Cmd) childStdin() (*os.File, error) {
exec.go#L535: if f, ok := c.Stdin.(*os.File); ok {
exec.go#L559: func (c *Cmd) childStdout() (*os.File, error) {
exec.go#L563: func (c *Cmd) childStderr(childStdout *os.File) (*os.File, error) {
exec.go#L574: func (c *Cmd) writerDescriptor(w io.Writer) (*os.File, error) {
exec.go#L584: if f, ok := w.(*os.File); ok {
exec.go#L702: childFiles := make([]*os.File, 0, 3+len(c.ExtraFiles))
crypto/internal/sysrand
rand.go#L56: var urandomFile *os.File
go.uber.org/zap
sink.go#L61: openFile func(string, int, os.FileMode) (*os.File, error) // type matches os.OpenFile
golang.org/x/tools/internal/gocommand
invoke.go#L309: var stdoutW *os.File
invoke.go#L311: if _, ok := cmd.Stdout.(*os.File); !ok {
invoke.go#L312: var stdoutR *os.File
io/ioutil
tempfile.go#L24: func TempFile(dir, pattern string) (f *os.File, err error) {
mime/multipart
formdata.go#L44: file *os.File
net
fd_unix.go#L194: func newUnixFile(fd int, name string) *os.File
fd_unix.go#L196: 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#L309: func (c *conn) File() (f *os.File, err error) {
parse.go#L18: file *os.File
sendfile_linux.go#L32: f, ok := r.(*os.File)
tcpsock.go#L420: func (l *TCPListener) File() (f *os.File, err error) {
tcpsock_posix.go#L170: func (ln *TCPListener) file() (*os.File, error) {
unixsock.go#L300: func (l *UnixListener) File() (f *os.File, err error) {
unixsock_posix.go#L199: func (ln *UnixListener) file() (*os.File, error) {
runtime/debug
stack.go#L49: func SetCrashOutput(f *os.File, opts CrashOptions) error {
testing
cover.go#L89: var f *os.File
testing.go#L512: testlogFile *os.File
testing.go#L2036: var realStderr *os.File
testing.go#L2342: var f *os.File