2024-11-24 22:27:55 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
modules := pareseGoMod()
|
|
|
|
module := NewModule(modules)
|
|
|
|
module.GenerateLicenseNames()
|
|
|
|
module.DumpOverview()
|
|
|
|
|
2024-12-13 21:24:18 +00:00
|
|
|
module.DumpText(true)
|
2024-11-24 22:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func truncateString(s string, length int) string {
|
|
|
|
if len(s) <= length {
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
return s[:length-3] + "..."
|
|
|
|
}
|