From 285c40ccfc860fa4fbbae52c12f9638ffbc16f3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Fri, 18 Mar 2022 13:18:19 +0100 Subject: [PATCH] Delete not-working code, templates related Templates are still WIP --- main.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/main.go b/main.go index e90fba2..f6f5d59 100644 --- a/main.go +++ b/main.go @@ -2,22 +2,9 @@ package main import ( "fmt" - "github.com/labstack/echo/v4" "github.com/oscarmlage/wikingo/server" - "html/template" - "io" ) -// Define the template registry struct -type TemplateRegistry struct { - templates *template.Template -} - -// Implement e.Renderer intercace -func (t *TemplateRegistry) Render(w io.Writer, name string, data interface{}, c echo.Context) error { - return t.templates.ExecuteTemplate(w, name, data) -} - func main() { fmt.Println("Starting wikingo...")