file

package
v0.0.0-...-bc5e03d Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: AFL-3.0, CC-BY-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesCounter

func BytesCounter(r io.Reader) (int64, error)

BytesCounter calculate the bytes of input stream

func BytesCounterByName

func BytesCounterByName(filename string) (int64, error)

BytesCounterByName calculate the bytes of input stream

func BytesCounterByNameSlice

func BytesCounterByNameSlice(files []string) (*map[string]int64, int64, []error)

BytesCounterByNameSlice count bytes from filename slice returns countMap, total , errs

func CounterByNameSlice

func CounterByNameSlice(files *[]string,
	f func(filename string) (int64, error)) (*map[string]int64, int64, []error)

CounterByNameSlice abstract func to conduct slice counter

func LineCounter

func LineCounter(r io.Reader) (int64, error)

LineCounter can be used to count file N lines. modifed from https://ask.csdn.net/questions/1009986?sort=comments_count

func LineCounterByName

func LineCounterByName(filename string) (int64, error)

LineCounterByName count lines from file

func LineCounterByNameSlice

func LineCounterByNameSlice(files []string) (*map[string]int64, int64, []error)

LineCounterByNameSlice count lines from filename slice returns countMap, total , errs

Types

This section is empty.

Jump to

Keyboard shortcuts

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