doc2json reads godoc formatted text and outputs json