mirror of
https://github.com/spf13/cobra
synced 2025-04-27 17:17:20 +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()
|
||
|
}
|
||
|
`)
|
||
|
}
|