Use append to update result
Use SliceTricks to simplify the code

https://code.google.com/p/go-wiki/wiki/SliceTricks