Hi Teja,
My golang-nuts code review points:
- don’t overuse interface (consider closures and function types/fields)
- don’t overuse packages, make more files in the same package first
- focus on the godoc presentation
- consider struct embedding
- slices are more efficient and readable than maps for some kinds of unordered sets
- a struct of pointers is similar to a pointer to a struct
- profile before making any choice away from easy code
For newbies:
- Writing computer programs with if, for, types, functions, and libraries is an art that many people might like. What Go brings is less wading through mud than C, Java, and scripting languages.
- Pointers are a hard part of Go and you should learn them well enough to not have any pointer questions. Map and interface vars are pointers, and a slice has a pointer to the array (a slice is a struct).
Matt