Ssgen is a project mainly written in Go, it's free.
Static site generator pkg written in go
Given a directory, convert to html and write out to the target directory. Anything that can't be converted (no applicable Converter) is simply copied over.
goinstall github.com/srijak/ssgen
import "github.com/srijak/ssgen"
.
.
// initialize the markdown to html converter
m := ssgen.NewMarkdownToHtml()
src_dir := "./a"
target_dir := "./a_web_root"
// give it the:
// src_dir : directory with files in original format.
// target_dir: directory to publish to. *NOTE* this is deleted and rewritten so make sure you can loose it.
// []Converter: array of converters (you can write your own as long as they implement the Converter interface)
ssgen.Convert(src_dir, target_dir, []Converter{m})