Documentation ¶
Index ¶
Constants ¶
View Source
const FileTmpl = `package generate
import "time"
`
View Source
const TagTmpl = "`json:\"%s\" explain:\"%s\"`"
View Source
const Tmpl = `package entity
import "time"
type Example struct{
A int` + "`json:\"a\" explain:\"模板\"`" + `
B string
C time.Time
}
`
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(c ConvertInterface, filename string)
func ConvertByTable ¶
func ConvertByTable(c ConvertInterface, tableName string)
Types ¶
type ConvertInterface ¶
Click to show internal directories.
Click to hide internal directories.