func main() { slob.SetGenParams("slob_gen", "", "", "go") obj := new(ADCF) slob.Render("tpl/dao.tpl").Read(obj).Set("pkgName", "test"). Execute() }
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() }