From afa8b5d2cc750cb25dc4642dcb25199cf0dd2e68 Mon Sep 17 00:00:00 2001 From: mikestefanello Date: Sun, 9 Jun 2024 21:42:43 -0400 Subject: [PATCH] Fixed typo. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3be4589..711aa7c 100644 --- a/README.md +++ b/README.md @@ -661,11 +661,11 @@ This will either initialize a new form to be rendered, or load one previously st #### Submission processing -Form submission processing is made extremely simple by leveraging functionality provided by [Echo binding](https://echo.labstack.com/guide/binding/), [validator](https://github.com/go-playground/validator) and the `Submission` struct located in `pkg/form/form.go`. +Form submission processing is made extremely simple by leveraging functionality provided by [Echo binding](https://echo.labstack.com/guide/binding/), [validator](https://github.com/go-playground/validator) and the `Submission` struct located in `pkg/form/submission.go`. Using the example form above, these are the steps you would take within the _POST_ callback for your route: -Start by setting the form in the request contxt. This stores a pointer to the form so that your _GET_ callback can access the form values (shown previously). It also will parse the input in the POST data to map to the struct so it becomes populated. This uses the `form` struct tags to map form values to the struct fields. +Start by setting the form in the request context. This stores a pointer to the form so that your _GET_ callback can access the form values (shown previously). It also will parse the input in the POST data to map to the struct so it becomes populated. This uses the `form` struct tags to map form values to the struct fields. ```go var input ContactForm