count

package
v0.0.0-...-f53b826 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Options

type Options struct {
	Verbose bool
	Workers int
	Logger  *log.Logger
}

type Result

type Result struct {
	Count int64
	Time  time.Duration
	Files int
}

func Dir

func Dir(path string, options *Options) (*Result, error)

Dir concurrently traverses path, counting all files. Dir returns a *Result result

func Tar

func Tar(path string, options *Options) (*Result, error)

Tar traverses path, counting all files. Dir returns a *Result result

func Zip

func Zip(path string, options *Options) (*Result, error)

Dir concurrently traverses path, counting all files. Dir returns a *Result result

Jump to

Keyboard shortcuts

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