News for hackers. Stuff that matters.
Re:Ask HN: What are you using Go for? by vram22 on Tuesday December 31, 2013 @11:53AM (#6991406)
>Then the data structure being sent to the APIs got an additional parameter. It told the public interface which API had to get that data.

Nice technique.

Re:Ask HN: What are you using Go for? by bliti on Tuesday December 31, 2013 @05:21PM (#6993161)
I call it the "Boarding Pass Pattern." I modeled it after the typical airplane boarding pass where everyone has the same data structure yet is going to different places/doing different things. :)
Re:Ask HN: What are you using Go for? by vram22 on Wednesday January 01, 2014 @12:59PM (#6995701)
Good name :) Another possible name could be the Differentiator Pattern (heh, just a wild try), since it differentiates between calls which otherwise have the same data. Or even the Call Router pattern, for obvious reasons ...