1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-12-24 00:01:31 +02:00

Added example web-app service

Example web-app required provided the ability to render html.
This commit is contained in:
Lee Brown
2019-05-18 18:06:10 -04:00
parent b40d389579
commit 308fee852c
19 changed files with 1400 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
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
}