Optimization for golang

I changed 2 points for more simple code.
 * rolled out #30.
 * removed "var" around "for-range".

thank you.