udemy-go-web-2/cmd/web/handlers.go

12 lines
220 B
Go
Raw Normal View History

package main
2024-08-03 22:26:40 +02:00
import (
"net/http"
)
func (app *application) VirtualTerminal(w http.ResponseWriter, r *http.Request) {
2024-08-03 22:26:40 +02:00
if err := app.renderTemplate(w, r, "terminal", nil); err != nil {
app.errorLog.Println(err)
}
}