Skip to content

proposal: os: add iterator variant of File.ReadDir #70084

@bradfitz

Description

@bradfitz

Proposal Details

Today we have:

https://pkg.go.dev/os#File.ReadDir etc

func (f *File) ReadDir(n int) ([]DirEntry, error)

That n feels so antiquated now that we have iterators! I propose that we add an iterator-based variant. 😄

/cc @neild

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions