Template
1
0
Fork 0

Remove unused imports and struct

This commit is contained in:
Atridad Lahiji 2024-01-26 11:51:41 -07:00
parent c3afa0473f
commit d84eaeb9ca
No known key found for this signature in database

12
main.go
View file

@ -1,10 +1,8 @@
package main
import (
"io"
"log"
"net/http"
"text/template"
"goth.stack/api"
"goth.stack/pages"
@ -15,16 +13,6 @@ import (
"github.com/uptrace/bunrouter/extra/reqlog"
)
// Template Type
type Template struct {
templates *template.Template
}
// Template Render function
func (t *Template) Render(w io.Writer, name string, data interface{}) error {
return t.templates.ExecuteTemplate(w, name, data)
}
func main() {
godotenv.Load(".env")