save work
This commit is contained in:
parent
dda9a45cfc
commit
cb645ae789
@ -44,12 +44,16 @@ func main() {
|
|||||||
|
|
||||||
// Ensure that we have `markdown` and `pygmentize`,
|
// Ensure that we have `markdown` and `pygmentize`,
|
||||||
// binaries, remember their paths.
|
// binaries, remember their paths.
|
||||||
markdownPath, err := exec.LookPath("markdown");
|
// markdownPath, err := exec.LookPath("markdown");
|
||||||
check(err)
|
// check(err)
|
||||||
pygmentizePath, err := exec.LookPath("pygmentize")
|
// pygmentizePath, err := exec.LookPath("pygmentize")
|
||||||
check(err)
|
// check(err)
|
||||||
|
|
||||||
fmt.Print(pipedCmd(markdownPath, []string{}, "## wat"))
|
// Read the source file in.
|
||||||
|
sourceBytes, err := ioutil.ReadFile(os.Args[1])
|
||||||
|
check(err)
|
||||||
|
source := string(sourceBytes)
|
||||||
|
fmt.Print(source)
|
||||||
|
|
||||||
fmt.Print(pipedCmd(pygmentizePath, []string{"-l", "go", "-f", "html"}, "package main"))
|
// ...
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user