25 lines
394 B
Go
25 lines
394 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"text/template"
|
||
|
)
|
||
|
|
||
|
func showRegisterForm(w http.ResponseWriter, r *http.Request) {
|
||
|
t, err := template.ParseFiles("tmpl/register.html")
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
t.Execute(w, nil)
|
||
|
}
|
||
|
|
||
|
func showLoginForm(w http.ResponseWriter, r *http.Request) {
|
||
|
t, err := template.ParseFiles("tmpl/login.html")
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
t.Execute(w, nil)
|
||
|
}
|