internals

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizeFormat    = "Folder size is: %d bytes.\n"
	SizeRawFormat = "%d\n"
)
View Source
const (
	FileCountFormat    = "Folder contains: %d files.\n"
	FileCountRawFormat = "%d\n"
)
View Source
const (
	LineCountFormat    = "Folder contains: %d lines.\n"
	LineCountRawFormat = "%d\n"
)

Variables

This section is empty.

Functions

func DirSize

func DirSize(w io.Writer, fsys fs.FS, opts DirSizeOpts)

func FileCount

func FileCount(w io.Writer, fsys fs.FS, opts FileCountOpts)

func LineCount

func LineCount(writer io.Writer, dirname string, opts LineCountOpts)

Types

type DirSizeOpts

type DirSizeOpts struct {
	Recursive bool
	Raw       bool
}

type FileCountOpts

type FileCountOpts struct {
	Recursive bool
	Raw       bool
}

type LineCountOpts

type LineCountOpts struct {
	Raw bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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