示例#1
0
文件: main.go 项目: suifengRock/clown
func main() {
	slob.SetGenParams("slob_gen", "", "", "go")
	obj := new(ADCF)

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

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