Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIMEJSON = "application/json" MIMEHTML = "text/html" MIMEXML = "application/xml" MIMEXML2 = "text/xml" MIMEPlain = "text/plain" MIMEPOSTForm = "application/x-www-form-urlencoded" MIMEMultipartPOSTForm = "multipart/form-data" MIMEPROTOBUF = "application/x-protobuf" )
Variables ¶
View Source
var Server *_Server
Functions ¶
func RegisterController ¶
func RegisterController(c interface{})
Types ¶
type CtrlBase ¶
func (CtrlBase) IsJsonReqest ¶
type TmplHelper ¶
TmplHelper 用动态加载模板的辅助参数
func (*TmplHelper) LoadMainTmpl ¶
func (th *TmplHelper) LoadMainTmpl(pattern string)
func (*TmplHelper) LoadView ¶
func (th *TmplHelper) LoadView(pattern string)
Click to show internal directories.
Click to hide internal directories.