Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

Notifications You must be signed in to change notification settings

frisbm/pkgcount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

22 Commits

Repository files navigation

pkgcount

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

Example from this project:

Internal Package Counts

Package Count
github.com/frisbm/pkgcount/internal/models 2
github.com/frisbm/pkgcount/internal/pkgcount 1
github.com/frisbm/pkgcount/internal/resultgroup 1

External Package Counts

Package Count
fmt 5
context 3
os 2
regexp 2
slices 2
strings 2
sync 2
bufio 1
bytes 1
errors 1
flag 1
log 1
math 1
os/exec 1
os/signal 1
path/filepath 1
sync/atomic 1
syscall 1
text/template 1

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

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /