gotools/cmd/golicenses/main.go

18 lines
280 B
Go

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