You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
447 B

package main
import (
"fmt"
"gitea.code-infection.com/efertone/scaffolder/internal/template"
)
type GoVariables struct {
AppName string
GoVersion string
PackageRoot string
}
func main() {
tmpl := template.NewTemplate(
"go",
GoVariables{
AppName: "myapp",
GoVersion: "1.16",
PackageRoot: "gitea.code-infection.com/efertone/myapp",
},
)
err := tmpl.Generate()
if err != nil {
fmt.Println(err.Error())
}
}