For standalone binary Golang is a better choice but that probably wasn't in scope for the developer who wrote it.
https://godoc.org/golang.org/x/tools/present