Esempio n. 1
0
func main() {
	slob.SetGenParams("slob_gen", "", "", "go")
	obj := new(ADCF)

	slob.Render("tpl/dao.tpl").Read(obj).Set("pkgName", "test").
		Execute()

}
Esempio n. 2
0
func main() {
	obj := new(Person)

	slob.SetGenParams("src/slob/example/gen", "prefix", "suffix", "go")
	slob.Render("src/slob/example/tpl/test.tpl").
		Read(obj).
		Set("pkgName", "main").
		Execute()
}