Search Gear Notes

Search Gear #15 – Half Way – Interfaces

I’m half way through my 30 days of code, it wont all be contiguous but I hope the 30 day sprint will get me much further forward with go. Then it will be back to a day a week of gophering. My third week of gophering suggests that if you don’t know about interfaces then…

Search Gear Notes

Search Gear #14 – Pseudo Constructors!

Changed the config twitter caller to a pseudo constructor thus func NewTwitter(file string) (*twitter, error) { tw := new(twitter) var parser toml.Parser if _, err := ioutil.ReadFile(file); err != nil { tw.errors = errors.New(co.Lang(“could not find the configuration file, you’ll need to provide these setting for twitter to work”)) } else { toml := parser.ParseFile(file)…

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…