First version of a tool to list used dependencies and their licenses.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
modules := pareseGoMod()
|
||||
module := NewModule(modules)
|
||||
module.GenerateLicenseNames()
|
||||
module.DumpOverview()
|
||||
|
||||
module.DumpText()
|
||||
}
|
||||
|
||||
func truncateString(s string, length int) string {
|
||||
if len(s) <= length {
|
||||
return s
|
||||
}
|
||||
return s[:length-3] + "..."
|
||||
}
|
||||
Reference in New Issue
Block a user