JSON parsing in Golang

Parsing JSON is a common task for most developers, currently I’m actually finally getting to write slugofy which is supposed to slugify URLs or URL fragments in Go.

In case you’re wondering, slugs are commonly used to generate URLs from the title of a page. Let’s say we have a page title like the Swedish national dish: Swedish national dish: k√∂ttbullar, we probably don’t want either the special chars like the √∂ or the : in there. Also we don’t want whitespaces to show up as %20, so let’s make them dashes instead: swedish-national-dish-koettbullar.

Continue reading “JSON parsing in Golang”