Skip to content
/ expmod Public

Prints GitHub project description for every direct dependency on GitHub in go.mod

License

Notifications You must be signed in to change notification settings

tebeka/expmod

Folders and files

NameName
Last commit message
Last commit date
Mar 13, 2025
Nov 26, 2023
Nov 26, 2023
Nov 19, 2023
Nov 16, 2023
Mar 13, 2025
Dec 12, 2023
Nov 16, 2023
Nov 16, 2023
Apr 17, 2025
Apr 17, 2025
Nov 21, 2023
Mar 13, 2025
Nov 26, 2023
Mar 13, 2025
Nov 26, 2023

Repository files navigation

expmod - Explain Go Mod

Tests

Prints GitHub project description for every direct dependency on GitHub in go.mod.

Usage

usage: expmod [options] [file or URL]
Options:
  -repo string
    	GitHub repository name
  -timeout duration
    	HTTP timeout (default 3s)
  -version
    	show version and exit

If GITHUB_TOKEN is found in the environment, it will be use to access GitHub API.
"Human" GitHub URLs (e.g. https://github.com/tebeka/expmod/blob/main/go.mod) will be redirected to raw content.

Example

$ expmod go.mod 
github.com/sahilm/fuzzy v0.1.0:
	Go library that provides fuzzy string matching optimized for filenames and code symbols in the style of Sublime Text, VSCode, IntelliJ IDEA et al.
github.com/stretchr/testify v1.8.4:
	A toolkit with common assertions and mocks that plays nicely with the standard library

Install

You can get the tool from the GitHub release section, or:

$ go install github.com/tebeka/expmod@latest

(If you go install, expmod won't display the right version with the -version flag).

Make sure $(go env GOPATH)/bin is in your $PATH.