Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { ScanTypeMap string `json:"scan_type_map"` // required Templates struct { Table string `json:"table"` // required TableTest string `json:"table_test"` // optional Stmt string `json:"stmt"` // required StmtTest string `json:"stmt_test"` // optional Extra []string `json:"extra"` // optional } `json:"tmpl"` }
type Option ¶
Option is used to create Renderer.
func TmplFS ¶
func TmplFS(tmplFS http.FileSystem) Option
TmplFS sets the template directory. (required)
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is used for generating code.
func NewRenderer ¶
NewRenderer create new Renderer.
type ScanTypeMap ¶
ScanTypeMap maps data type to scan type. [0] is for not nullable types. [1] is for nullable types.
func NewScanTypeMap ¶
NewScanTypeMap loads scan type map from io.Reader.
Click to show internal directories.
Click to hide internal directories.