18 lines
284 B
Go
18 lines
284 B
Go
package main
|
|
|
|
func main() {
|
|
modules := pareseGoMod()
|
|
module := NewModule(modules)
|
|
module.GenerateLicenseNames()
|
|
module.DumpOverview()
|
|
|
|
module.DumpText(true)
|
|
}
|
|
|
|
func truncateString(s string, length int) string {
|
|
if len(s) <= length {
|
|
return s
|
|
}
|
|
return s[:length-3] + "..."
|
|
}
|