package
1.0.5
Repository: https://github.com/yitsushi/go-aoc.git
Documentation: pkg.go.dev

# README

Scaffolding

Generate file/directory structure from template

Note: All file will be rendered with .tmpl extension and all directory will be created where there is at least one .tmpl file.

type templateVariables struct {
    Day  int
    Root string
}

err := aoc.Scaffold(
    templateDir,
    fmt.Sprintf("days/day%02d", dayNumber),
    templateVariables{
        Day:  dayNumber,
        Root: packageRoot,
    },
)
if err != nil {
    logrus.Errorln(err)
}

# Functions

Scaffold generates a Solution directory structure for a day.