mirror of
https://github.com/spf13/cobra
synced 2024-07-03 00:51:39 +00:00
18 lines
208 B
Go
18 lines
208 B
Go
package tpl
|
|
|
|
func MainTemplate() []byte {
|
|
return []byte(`
|
|
/*
|
|
{{ .Copyright }}
|
|
{{if .Legal.Header}}{{ .Legal.Header }}{{end}}
|
|
*/
|
|
package main
|
|
|
|
import "{{ .PkgName }}/cmd"
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
}
|
|
`)
|
|
}
|