mdgo
mdgo copied to clipboard
Markdown Go: Literate Programming for Go
Markdown Go: Literate Programming for Go
Get, install and run test:
go get -u github.com/ungerik/mdgo
cd $GOPATH/src/github.com/ungerik/mdgo
go install && mdgo
// mdgo called in this directory creates test.go from test.go.md
mdgo creates .go files from .go.md files by commenting out markdown and treating indented blocks as Go source code.
Arguments passed to mdgo will be parsed directly if they are files or traversed recursively if they are directories. Every .md.go file in a traversed directory will be parsed. If no arguments are passed to mdgo, the current directory will be traversed.
See test.go.md