{"id":2881,"date":"2018-03-20T09:23:29","date_gmt":"2018-03-20T15:23:29","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=2881"},"modified":"2018-03-20T09:23:29","modified_gmt":"2018-03-20T15:23:29","slug":"fun-with-golang","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/2881","title":{"rendered":"Fun with golang"},"content":{"rendered":"<figure id=\"attachment_2882\" aria-describedby=\"caption-attachment-2882\" style=\"width: 300px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2882\" src=\"http:\/\/www.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/03\/prairie-dog-1590375_640-300x118.jpg\" alt=\"Prairie Dog\" width=\"300\" height=\"118\" srcset=\"http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/03\/prairie-dog-1590375_640-300x118.jpg 300w, http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/03\/prairie-dog-1590375_640.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-2882\" class=\"wp-caption-text\">Yes, it&#8217;s not a gopher, but they are related.<\/figcaption><\/figure>\n<p>I&#8217;m writing a small piece of work in golang. It&#8217;s been fun to learn a new language. Initial thoughts:<\/p>\n<ul>\n<li>I love the strict compiler. It saved me from making some dumb mistakes. It&#8217;s annoying at times (when you are cleaning up after <a href=\"https:\/\/tenderlovemaking.com\/2016\/02\/05\/i-am-a-puts-debuggerer.html\">println debugging<\/a> you have to remove the log import statement).<\/li>\n<li>I love that go fmt is built right into the language. No more formatting wars.<\/li>\n<li>The standard library has some testing support but it&#8217;s pretty primitive.<\/li>\n<li>It was weird that you have way to mark methods as private.<\/li>\n<li>I did a small bit of concurrency work and go seems like a great fit for that.<\/li>\n<li>The docs are great. I spent a lot of time on <a href=\"https:\/\/tour.golang.org\/welcome\/1\">the Tour<\/a> and the <a href=\"https:\/\/golang.org\/pkg\/\">API docs<\/a>.<\/li>\n<li>The name is too general, but when googling, I was able to search for &#8216;golang&#8217; and retrieve good results.<\/li>\n<\/ul>\n<p>I have a few friends that rave about go. I can see why.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing a small piece of work in golang. It&#8217;s been fun to learn a new language. Initial thoughts: I love the strict compiler. It saved me from making some [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2881","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=2881"}],"version-history":[{"count":1,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2881\/revisions"}],"predecessor-version":[{"id":2883,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/2881\/revisions\/2883"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=2881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=2881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=2881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}