Documentation ¶
Index ¶
- func BytesCounter(r io.Reader) (int64, error)
- func BytesCounterByName(filename string) (int64, error)
- func BytesCounterByNameSlice(files []string) (*map[string]int64, int64, []error)
- func CounterByNameSlice(files *[]string, f func(filename string) (int64, error)) (*map[string]int64, int64, []error)
- func LineCounter(r io.Reader) (int64, error)
- func LineCounterByName(filename string) (int64, error)
- func LineCounterByNameSlice(files []string) (*map[string]int64, int64, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesCounter ¶
BytesCounter calculate the bytes of input stream
func BytesCounterByName ¶
BytesCounterByName calculate the bytes of input stream
func BytesCounterByNameSlice ¶
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 ¶
LineCounter can be used to count file N lines. modifed from https://ask.csdn.net/questions/1009986?sort=comments_count
func LineCounterByName ¶
LineCounterByName count lines from file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.