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…

Search Gear Notes

Search Gear #9 – Drone.io and More Testing!

Drone.io come through with an Academic account with free repos’! Nice one Brad @droneio. A-Level results day so no much Go-ing on! But re ran my test code after system restart – just in case it was anything I did in yesterdays session which didn’t continue through to today and SUCESS! Simon-Harpers-iMac:searchgear sharper$ go run…