Remove unused imports and struct
This commit is contained in:
parent
c3afa0473f
commit
d84eaeb9ca
1 changed files with 0 additions and 12 deletions
12
main.go
12
main.go
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue