Documentation ¶
Index ¶
- func DealAvailableColor(args ...interface{}) string
- func DealAvailablePipeline(args ...interface{}) string
- func DealClassName(args ...interface{}) string
- func DealTimeAvailable(args ...interface{}) string
- func DealTimeFormat(args ...interface{}) string
- func DealWebConstance(args ...interface{}) string
- func GetFileMD5(path string) (string, error)
- func ToView(w http.ResponseWriter, name string, model interface{})
- type AdminController
- type HistoryController
- type HomeController
- type IController
- type LoginController
- type SubmitController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DealAvailableColor ¶
func DealAvailableColor(args ...interface{}) string
DealAvailableColor {{checktime . | availdcolor}}
func DealAvailablePipeline ¶
func DealAvailablePipeline(args ...interface{}) string
DealAvailablePipeline {{checktime . | s2bool}}
func DealClassName ¶
func DealClassName(args ...interface{}) string
DealClassName {{.ClassNO | clsname}}
func DealTimeAvailable ¶
func DealTimeAvailable(args ...interface{}) string
DealTimeAvailable {{checktime .}}
func DealTimeFormat ¶
func DealTimeFormat(args ...interface{}) string
DealTimeFormat {{.Time | time}}
func DealWebConstance ¶
func DealWebConstance(args ...interface{}) string
DealWebConstance {{"Key" | tr}}
func ToView ¶
func ToView(w http.ResponseWriter, name string, model interface{})
ToView of the controller
Types ¶
type AdminController ¶
type AdminController struct { }
AdminController /submit
func (*AdminController) Get ¶
func (c *AdminController) Get(w http.ResponseWriter, r *http.Request)
Get action
func (*AdminController) Post ¶
func (c *AdminController) Post(w http.ResponseWriter, r *http.Request)
Post action
type HistoryController ¶
type HistoryController struct { }
HistoryController /submit
func (*HistoryController) Get ¶
func (c *HistoryController) Get(w http.ResponseWriter, r *http.Request)
Get action
func (*HistoryController) Post ¶
func (c *HistoryController) Post(w http.ResponseWriter, r *http.Request)
Post action
type HomeController ¶
type HomeController struct { }
HomeController "/"
func (*HomeController) Get ¶
func (c *HomeController) Get(w http.ResponseWriter, r *http.Request)
Get action
func (*HomeController) Post ¶
func (c *HomeController) Post(w http.ResponseWriter, r *http.Request)
Post action
type IController ¶
type IController interface { Get(w http.ResponseWriter, r *http.Request) Post(w http.ResponseWriter, r *http.Request) }
IController interface
type LoginController ¶
type LoginController struct { }
LoginController "/login"
func (*LoginController) Get ¶
func (c *LoginController) Get(w http.ResponseWriter, r *http.Request)
Get action
func (*LoginController) Post ¶
func (c *LoginController) Post(w http.ResponseWriter, r *http.Request)
Post action
type SubmitController ¶
type SubmitController struct { }
SubmitController /submit
func (*SubmitController) Get ¶
func (c *SubmitController) Get(w http.ResponseWriter, r *http.Request)
Get action
func (*SubmitController) Post ¶
func (c *SubmitController) Post(w http.ResponseWriter, r *http.Request)
Post action
Click to show internal directories.
Click to hide internal directories.