JSON arrays aren't typed so you end up with a []interface{} when it is parsed into Go. Even if it will parse correctly when it is an array of all strings, I'm worried about what happens when someone accidentally puts an integer in the array of languages.

On Mon, Nov 04, 2013 at 02:35:09PM -0800, Antoine Grondin wrote:
> >  )
> >  
> > +var DefaultLanguages = []interface{}{ "en" }
> 
> Why the `interface`?  Couldn't it be `[]string{"en"}` ?
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/aybabtme/brog/pull/13/files#r7416157