ip1981/GCD — pull request #1 by krasin (2012-03-30 21:47:58+00:00)
Title: Update gcd.go to Go 1. Make the code more idiomatic

Hi Igor!

Please, accept this pull request. It consists of the following parts:

1. Running go fmt.
2. Update gcd.go to Go 1 (strconv.Atoiu is now strconv.ParseUint and has changes signature a bit, see http://golang.org/pkg/strconv/#ParseInt)
3. Update the build instructions for the Plan9 toolchain (6g/8g). Now, it does not expose compilers and linkers to the programmer. It has the unified Go command. See http://golang.org/cmd/go/
4. Make the code more idiomatic. I understand that some of my changes may be questionable, because this part of the pull request is non-normative. Feel free to keep it unmerged.

The most notable changes there:
- don't use flag package, use os.Args instead. flag package is for dealing with --someflag=43
- use for _, v := range array instead of for i := range array { .. array[i] ... }
- use append() instead of make and assign.
other changes are less important.

Please, let me know if you have any concerns.

Ivan Krasin