golang with filter foreach reduce