Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

pkgcount

A simple tool to count internal & external package use for go projects

Example from this project:

Internal Package Counts

PackageCount
github.com/frisbm/pkgcount/internal/models2
github.com/frisbm/pkgcount/internal/pkgcount1
github.com/frisbm/pkgcount/internal/resultgroup1

External Package Counts

PackageCount
fmt5
context3
os2
regexp2
slices2
strings2
sync2
bufio1
bytes1
errors1
flag1
log1
math1
os/exec1
os/signal1
path/filepath1
sync/atomic1
syscall1
text/template1

Install

go install github.com/frisbm/pkgcount@latest

Usage:

pkgcount [flags]

The flags are:

-h
Display the help message along with the list of arguments and their descriptions.
-u
Set this option to retrieve the final resulting markdown in an unrendered format.
-o
Save the output to a file. Please note that the rendered markdown might appear differently in a file. This option is typically used in conjunction with -u.
-d
Specify the directory or file path to execute the operation on. By default, it uses the current working directory.
-lte
Filter the package counts and only display those with counts less than or equal to the specified integer.
-gte
Filter the package counts and only display those with counts greater than or
equal to the specified integer.
-exclude
Enter a regular expression here to exclude specific files, directories,
or other entities.

About

A simple tool to count internal & external package use for go projects rendered to markdown

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages