First version of a tool to list used dependencies and their licenses.

This commit is contained in:
2024-11-24 23:27:55 +01:00
parent f269c95ce4
commit 0a4ed3a95f
3 changed files with 242 additions and 0 deletions
+17
View File
@@ -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] + "..."
}