Migrated project to use golang.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package handlers
|
||||
|
||||
import "net/http"
|
||||
|
||||
type HomeData struct {
|
||||
Title string
|
||||
}
|
||||
|
||||
func Home(w http.ResponseWriter, r *http.Request) {
|
||||
data := HomeData{Title: "Home"}
|
||||
view(w, r, "home", data)
|
||||
}
|
||||
Reference in New Issue
Block a user