gotools/cmd/golicenses/main.go
2024-12-13 22:24:18 +01:00

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] + "..."
}