gopkg.in/easygen.v4@v4.1.0/cmd/easygen/config.tmpl (about) 1 // !!! !!! 2 // WARNING: Code automatically generated. Editing discouraged. 3 // !!! !!! 4 5 package {{.PackageName}} 6 7 //////////////////////////////////////////////////////////////////////////// 8 // Constant and data type/structure definitions 9 10 const progname = "{{.ProgramName}}" // os.Args[0] 11 12 // The {{.StructName}} struct defines the structure to hold the commandline values 13 type {{.StructName}} struct { {{range .Options}}{{if ne .Name "SEPARATOR" }} 14 {{.Name}} {{.Type}} // {{.Usage}}{{end}}{{end}} 15 } 16 17