The way beego if else is written

Why can"t you find scoreList in

if else

clipboard.png

clipboard.png

Apr.06,2022

assignment is performed in curly braces, and scoreList is used only in curly braces. Screenshot 1, the scoreList variable declaration is immediately outside, screenshot 2, and the variables obtained by curly braces still have this problem. Remove the colon and change the assignment immediately

Menu