Month: January 2017

  • Earn more by learning Go!

    According to this article a friend forwarded to me, software developers who learn Go, Python or Scala (along with tech like Apache Spark) have found it easier to find jobs with better salaries. Learning Scala caused the highest boost and in the second place was Go. Learning python is a bit subjective in terms of…

  • Golang: Testing HTTP requests

    Unit testing HTTP calls to external services is pretty easy in Go. Let’s say we have some code that makes HTTP requests like so: package something import ( “net/http” ) func SomeFunc(url) string { rs, _ := http.Get(url) defer rs.Body.Close() body, _ := ioutil.ReadAll(rs) return string(body) } We can test if the request is made…