gotools/cmd/golicenses/main.go

18 lines
284 B
Go
Raw Normal View History

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