Published News Golang

Dependency Injection, Duck Typing, and Clean Code in Go

Posted By tutorialStash on Golang

http://txt.fliglio.com - Along the path to learning to program in golang, one thing that took some getting used to for me was using dependency injection and duck typing effectively. In this post I'll attempt to show how these concepts can be used to create clean and testable code.

How to Make Your Statistical Programs More Scalable With Go

Posted By tutorialStash on Golang

https://www.hakkalabs.co - Aditya Mukerjee discusses how to use Google's Go programming language for statistics. This talk was recorded at the New York Open Statistical Programming meetup at Knewton.

HTTP handlers in Go - thoughts from places

Posted By tutorialStash on Golang

http://thoughtsfromplac.es - Any type that satisfies the http.Handler interface can be used to respond to HTTP requests. In order to satisfy this interface a type needs to have a method called ServeHTTP that accepts an http.ResponseWriter and a pointer to an http.Request (N.B. Types that end in er are an interface. Although this is just a convention so packages outside the standard library might not always follow this.)

Getting Uncomfortable - Quick and Dirty Guide to Deploying Go Apps

Posted By tutorialStash on Golang

http://learningtolearn.sndrs.ca - When it comes to deploying hobby applications, Heroku is pretty much the thing to use. Though perhaps you don’t want to use Heroku or simply can’t (i.e. want to use the filesystem). In those cases you’ll need to setup your own server, get all the dependencies taken care of and then finally get around to configuring your actual application. Thankfully with Go builds and deployment can be pretty straightforward. The biggest hurdles are simply getting your environment ready to serve up your application and install Go.

Golang Internals, Part 4: Object Files and Function Metadata | Blog on All Things Cloud Foundry

Posted By tutorialStash on Golang

http://blog.altoros.com - Today, we’ll take a closer look at the Func structure and discuss a few details on how garbage collection works in Go.

Decoding YAML in Go

Posted By tutorialStash on Golang

http://mlafeldt.github.io - I originally developed chef-runner as a fast alternative to the painfully slow vagrant provision. The tool has since evolved and can now be used to rapidly provision not only local Vagrant machines but also remote hosts like EC2 instances (in fact, any system reachable over SSH).