Documentation ¶ Index ¶ type HelloController func (ctr *HelloController) File(c *gallop.Context) gallop.File func (ctr *HelloController) Hello(c *gallop.Context) string func (ctr *HelloController) Json(c *gallop.Context) gallop.Json func (ctr *HelloController) Valid(c *gallop.Context) string type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type HelloController ¶ type HelloController struct { Demo *config.Demo `inject:""` Demo1 *config.Demo `inject:"demo"` Cfg *config.Configuration `inject:""` } func (*HelloController) File ¶ func (ctr *HelloController) File(c *gallop.Context) gallop.File func (*HelloController) Hello ¶ func (ctr *HelloController) Hello(c *gallop.Context) string func (*HelloController) Json ¶ func (ctr *HelloController) Json(c *gallop.Context) gallop.Json func (*HelloController) Valid ¶ added in v0.1.7 func (ctr *HelloController) Valid(c *gallop.Context) string type User ¶ added in v0.1.7 type User struct { Name string `json:"name" form:"name" v:"required#请输入用户姓名"` Type int `json:"type" form:"type" v:"required#请选择用户类型"` } Source Files ¶ View all Source files hello.go Click to show internal directories. Click to hide internal directories.