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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"text/template"
|
|
||||||
|
|
||||||
"goth.stack/api"
|
"goth.stack/api"
|
||||||
"goth.stack/pages"
|
"goth.stack/pages"
|
||||||
|
@ -15,16 +13,6 @@ import (
|
||||||
"github.com/uptrace/bunrouter/extra/reqlog"
|
"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() {
|
func main() {
|
||||||
godotenv.Load(".env")
|
godotenv.Load(".env")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue