From 62ec3081da16b1e77210230800fae3a4553c085b Mon Sep 17 00:00:00 2001 From: WDdxRW Date: Sat, 15 May 2021 21:37:55 +0800 Subject: [PATCH] Update 04.2.md --- en/04.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/04.2.md b/en/04.2.md index cb618900..be3807b7 100644 --- a/en/04.2.md +++ b/en/04.2.md @@ -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") {