Update 04.2.md

This commit is contained in:
WDdxRW
2021-05-15 21:37:55 +08:00
committed by GitHub
parent 2573ebdb67
commit 62ec3081da

View File

@@ -96,7 +96,7 @@ If we want to know whether the user is male or female, we may use a radio button
```
And we use the following code to validate the input:
```Go
slice:=[]int{1,2}
slice:=[]string{"1","2"}
for _, v := range slice {
if v == r.Form.Get("gender") {