https://github.com/berquerant/go-find-license
Search pkg.go.dev and display the licenses for the dependencies of the module.
https://github.com/berquerant/go-find-license
go
Last synced: 8 months ago
JSON representation
Search pkg.go.dev and display the licenses for the dependencies of the module.
- Host: GitHub
- URL: https://github.com/berquerant/go-find-license
- Owner: berquerant
- License: mit
- Created: 2022-07-22T14:10:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T14:11:50.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T16:58:41.264Z (over 1 year ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-find-license
```
❯ go-find-license -h
Usage of go-find-license:
go-find-license [flags]
Search pkg.go.dev and display the licenses for the dependencies of the module,
like:
{
"Content": CONTENT,
"Type": TYPE,
"URI": URI,
"Source": SOURCE,
"Module": {
"Path": PATH,
"Version": VERSION,
"Indirect": INDIRECT,
"Error": ERROR
},
"Err": ERR
}
CONTENT: string
license text
TYPE: string
type of license, e.g. MIT
URI: string
scraped URI
SOURCE: string
license file path
PATH: string
module path
VERSION: string
module version
INDIRECT: bool
indirect dependency or not
ERROR: any
loading module error
ERR: string
scraping error
Flags:
-debug
Enable debug logs.
-direct
Ignore indirect dependencies.
-dry
Without searching licenses from pkg.go.dev.
-list
Use go list.
```