Documentation
¶
Index ¶
- Constants
- Variables
- func AddFuncName(names ...string)
- func GetFuncMap() (fc template.FuncMap)
- func GetHTMLTmpl(p string, fmap template.FuncMap) (t *template.Template, err error)
- func GetTemplateRelPath(names Meta, ext string) string
- func GetTextFuncMap() (fc txtemplate.FuncMap)
- func GetTextTmpl(p string, fmap txtemplate.FuncMap) (t *txtemplate.Template, err error)
- func IsSQLID(id string) bool
- func SQLInsert(db SQLExecutor, table string, m interface{}, quoteChar ...string) (sql.Result, error)
- func SQLMultiInsert(db SQLExecutor, table string, models ...interface{}) (res []sql.Result)
- func URLSafeTrashString(s string) string
- type BaseController
- type Controller
- type DataView
- type HTMLTmplView
- type ID
- type IDForeign
- type IDType
- type Meta
- type Mold
- type SQLExecutor
- type SQLID
- type SQLNullBool
- type SQLNullFloat64
- type SQLNullID
- type SQLNullInt64
- type SQLNullString
- type TextTmplView
- type TmplView
- type VM
- type View
Constants ¶
View Source
const ( MVCModule int = iota MVCController MVCAction MVCType )
Variables ¶
View Source
var (
CacheDuration = time.Minute * 1 / 60
)
Functions ¶
func AddFuncName ¶
func AddFuncName(names ...string)
func GetFuncMap ¶
func GetHTMLTmpl ¶
func GetTemplateRelPath ¶
func GetTextFuncMap ¶
func GetTextFuncMap() (fc txtemplate.FuncMap)
func GetTextTmpl ¶
func GetTextTmpl(p string, fmap txtemplate.FuncMap) (t *txtemplate.Template, err error)
func SQLMultiInsert ¶
func SQLMultiInsert(db SQLExecutor, table string, models ...interface{}) (res []sql.Result)
func URLSafeTrashString ¶
Types ¶
type BaseController ¶
func (*BaseController) Construct_ ¶
func (c *BaseController) Construct_(_ *web.Context)
func (*BaseController) Destruct_ ¶
func (c *BaseController) Destruct_()
type Controller ¶
type HTMLTmplView ¶
type SQLExecutor ¶
type SQLNullBool ¶
func (SQLNullBool) MarshalJSON ¶
func (ns SQLNullBool) MarshalJSON() ([]byte, error)
type SQLNullFloat64 ¶
type SQLNullFloat64 struct {
sql.NullFloat64
}
func (SQLNullFloat64) MarshalJSON ¶
func (ns SQLNullFloat64) MarshalJSON() ([]byte, error)
type SQLNullID ¶
type SQLNullID struct {
sql.NullString
}
func NewSQLNullID ¶
func NewSQLNullID() SQLNullID
func (SQLNullID) MarshalJSON ¶
type SQLNullInt64 ¶
func (SQLNullInt64) MarshalJSON ¶
func (ns SQLNullInt64) MarshalJSON() ([]byte, error)
type SQLNullString ¶
type SQLNullString struct {
sql.NullString
}
func NewSQLNullString ¶
func NewSQLNullString() SQLNullString
func (SQLNullString) MarshalJSON ¶
func (ns SQLNullString) MarshalJSON() ([]byte, error)
type TextTmplView ¶
type TextTmplView interface { TmplView SetGetTmpl(func(fmap txtemplate.FuncMap) (t *txtemplate.Template, err error)) }
Click to show internal directories.
Click to hide internal directories.