Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(e *ViewEngine) gin.HandlerFunc
Middleware function You should use helper func `Middleware()` to set the supplied
func NewMiddleware ¶
func NewMiddleware(config goview.Config) gin.HandlerFunc
NewMiddleware create new gin middleware
Types ¶
type ViewEngine ¶
type ViewEngine struct {
*goview.ViewEngine
}
ViewEngine struct
type ViewRender ¶
type ViewRender struct { Engine *ViewEngine Name string Data interface{} }
ViewRender struct
func (ViewRender) Render ¶
func (v ViewRender) Render(w http.ResponseWriter) error
Render (YAML) marshals the given interface object and writes data with custom ContentType.
func (ViewRender) WriteContentType ¶
func (v ViewRender) WriteContentType(w http.ResponseWriter)
WriteContentType method
Click to show internal directories.
Click to hide internal directories.