unsorted

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package unsorted provides the unsorted variant of os.ReadDir, for those many situations where it really doesn't matter whether directory entries are sorted, or not. So why bother to sort them at all?

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(name string) ([]os.DirEntry, error)

ReadDir reads the specified directory, returning all its directory entries, but not taking the time to sort them. It complements the stdlib's io.ReadDir (see also the [go-nuts] discussion).

[go-nuts]: https://groups.google.com/g/golang-nuts/c/Q7hYQ9GdX9Q/m/fwYRMIbNDgsJ

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL