improve go example

and fix some build error
sort.Ints([]int{1, 5, 3, 12, 2})