Skip to content
/ gostars Public

This command is useful when you are not sure which Go module to use.

License

Notifications You must be signed in to change notification settings

KEINOS/gostars

Repository files navigation

GoStars - Get the Attraction Gravity of a Go Package

gostars retuns the attraction graivity of a Go package in GitHub.

The aim of gostars is to provide as much information as possible to those who are struggling to decide which package to use, so that they can make an informed decision.

# Usage
gostars <package name> [...<package name>]
$ # Sample
$ gostars github.com/daviddengcn/go-colortext
- go-colortext
  1. Gravity:      583
  2. Package Name: github.com/daviddengcn/go-colortext
  3. URL:          https://github.com/daviddengcn/go-colortext
  4. Stars:        209
  5. Forks:        20
  6. Folllows:     9
  7. ImportedBy:   544
$ # Sample
$ gostars github.com/goccy/go-json github.com/json-iterator/go
- go-json
  1. Gravity:      1331
  2. Package Name: github.com/goccy/go-json
  3. URL:          https://github.com/goccy/go-json
  4. Stars:        1321
  5. Forks:        48
  6. Folllows:     17
  7. ImportedBy:   160
- go
  1. Gravity:      12470
  2. Package Name: github.com/json-iterator/go
  3. URL:          https://github.com/json-iterator/go
  4. Stars:        10426
  5. Forks:        850
  6. Folllows:     238
  7. ImportedBy:   6785

About "Gravity"

The element name "Gravity" represents the suction force of the Go package.

  • The current basic formula for measuring attractiveness:

    weight := math.Sqrt(
        (numStars * numStars) +
        (numFolows * numFolows) +
        (numForks * numForks) +
        (numImports * numImports),
    )

Install

# macOS/Linux (x86_64/AMD64/ARM64/M1)
brew install KEINOS/apps/gostars

License

ToDo

  • Add more elements to the formula to measure weight.
    • Add Go Report Card's score.
    • Add code coverage rate.
    • Add "Code frequency" or "Pulse".

About

This command is useful when you are not sure which Go module to use.

Resources

License

Security policy

Stars

Watchers

Forks