Is there a foreach construct in the Go language? Can I iterate over a slice or array using a for?
foreach
for
转载于:https://stackoverflow.com/questions/7782411/is-there-a-foreach-loop-in-go