1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-06 23:46:29 +02:00
Lee Brown 308fee852c Added example web-app service
Example web-app required provided the ability to render html.
2019-05-18 18:06:10 -04:00

13 lines
401 B
Go

package web
import (
"context"
"net/http"
)
type Renderer interface {
Render(ctx context.Context, w http.ResponseWriter, req *http.Request, templateLayoutName, templateContentName, contentType string, statusCode int, data map[string]interface{}) error
Error(ctx context.Context, w http.ResponseWriter, req *http.Request, statusCode int, er error) error
Static(rootDir, prefix string) Handler
}