You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
324 B
15 lines
324 B
package handlers |
|
|
|
import ( |
|
"fmt" |
|
"net/http" |
|
) |
|
|
|
func (h *Handler) Welcome(w http.ResponseWriter, r *http.Request) { |
|
fmt.Printf("we have reached the welcome route") |
|
|
|
err := h.Template.ExecuteTemplate(w, "welcome.html", nil) |
|
if err != nil { |
|
http.Error(w, "Template rendering error", http.StatusInternalServerError) |
|
} |
|
}
|
|
|