diff --git a/en/14.3.md b/en/14.3.md index 67ce5f5f..faa2edb5 100644 --- a/en/14.3.md +++ b/en/14.3.md @@ -23,16 +23,16 @@ For developers, the general development process can be quite complex, but it's m First, we define a `struct` with fields corresponding to the fields in our form element. We can use `struct` tags which map to the form element, as shown below: -First define a struct that corresponds to when developing Web applications, a field corresponding to a form element, defined by using a struct tag corresponding to the element information and authentication information, as shown below: +When developing Web applications, first define a struct that matches a field to a corresponding form element, defined by using a struct tag corresponding to the element information and authentication information, as shown below: -For developers, the general development process is very complex, and mostly are repeating the same work. Assuming a scenario project suddenly need to add a form data, then the local code of the entire process needs to be modified. We know that Go inside a struct is a common data structure, so beego the form struct used to process form information. +For developers, the general development process is very complex, and mostly consists of repeating the same work process. Assuming a scenario for a project whereby a need arises to add data to a form, then the local code of the entire process needs to be modified. We know in Go a struct is a common data structure, so beego uses a form struct to process form information. -First define a `struct` with fields corresponding to our form element, using `struct` tags to define corresponding element and authentication information, like so: +First define a `struct` with fields corresponding to our form element, using `struct` tags to define the corresponding form element and authentication information, like so: type User struct{ Username string `form:text,valid:required` Nickname string `form:text,valid:required` - Age int `form:text,valid:required|numeric` + Age int `form:text,valid:required|numeric` Email string `form:text,valid:required|valid_email` Introduce string `form:textarea` } @@ -179,7 +179,7 @@ The following table lists some form validation rules native to Beego that can be