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

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

}
Example #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()
}