This commit is contained in:
lbenedar
2026-03-06 12:35:10 +03:00
parent 91f5a63366
commit 2824e51c29
7 changed files with 113 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ func (app *application) notFound(w http.ResponseWriter) {
app.clientError(w, http.StatusNotFound)
}
func (app *application) decodePostForm(r *http.Request, snippetForm *snippetCreateForm) error {
func (app *application) decodePostForm(r *http.Request, snippetForm any) error {
err := r.ParseForm()
if err != nil {
return err