Add Renderer
This commit is contained in:
parent
78000acf6c
commit
ae68248d25
3 changed files with 29 additions and 10 deletions
9
type.go
Normal file
9
type.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package router
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type Renderer interface {
|
||||
Render(w io.Writer, template string, data interface{}, c *Context) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue