go-xorm / cmd

Command line tools for database operation written by Go, moved to https://gitea.com/xorm/cmd
BSD 3-Clause "New" or "Revised" License
168 stars 77 forks source link

模板文件struct.go.tpl中怎么获取prefix #31

Open scholar-ink opened 6 years ago

scholar-ink commented 6 years ago

func (t {{Mapper .Name}}) TableName() string { return "ty_{{$table.Name}}" } 代码中ty_是prefix 但是不知道怎么获取