Merge pull request #817 from scrapup/patch-1

Update 04.2.md
This commit is contained in:
astaxie
2017-04-08 16:29:04 +08:00
committed by GitHub

View File

@@ -97,7 +97,7 @@
slice:=[]string{"apple","pear","banane"}
v := r.Form.Get("fruit")
for item in slice {
for _, item range slice {
if item == v {
return true
}