Search Gear Notes

Search Gear #13 – Variable Scoping!

OK so what next? Need to query ‘my’ twitter timeline every ‘so often’. ‘So often’ is defined by the number of tweets returned from the maximum of 200 as allowed by twitters API. The number of tweets returned defines the period that twitter is queried (not sure if these – every so often – episodes…

Search Gear Notes

Search Gear #11- Testing and Coverage!

Thanks @rob_pike for sorting me out on cover and style. Rule for today run ‘go fmt’ to get that go code nice and formatted to standard style conventions! go-imports tool http://blog.golang.org/laws-of-reflection go test -v go test -cover go test -coverprofile=coverage.out go tool cover -func=cover.out go tool cover -html=coverage.out http://blog.golang.org/cover ~Oh you are joking! Simon-Harpers-iMac:searchgear sharper$…

Search Gear Notes

Search Gear #10 – I need your critical comments!

Go, I need your constructive critical comments. For me constructive criticism is the fast way to learn. So here is my first simple bit of code (which I’m prepared to share). How would you have done it differently and why is your way better than mine? What’s wrong with my Go style, and what bits…