go-commonmark is a Go (golang) wrapper for the CommonMark C library
go get github.com/rhinoman/go-commonmark
Note: The cmark C reference implementation has been folded into this repository, no need to install it separately. It will be built automagically by cgo.
See the Godoc: http://godoc.org/github.com/rhinoman/go-commonmark
If all you need is to convert CommonMark text to Html, just do this:
import "github.com/rhinoman/go-commonmark"
...
htmlText := commonmark.Md2Html(mdText)