GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - frisbm/pkgcount: A simple tool to count internal & external package use for go projects rendered to markdown

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
internal
internal
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
pkgcount.go
pkgcount.go
 
 

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

pkg.go.dev/github.com/frisbm/pkgcount

Topics

clidependency-analysisgogo-cligolangmarkdownpackage-analysis

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.