1
0
mirror of https://github.com/golang/go synced 2024-11-22 13:04:44 -07:00
go/doc/codelab/wiki/htmlify.go
2011-01-26 14:56:52 +10:00

13 lines
149 B
Go

package main
import (
"os"
"template"
"io/ioutil"
)
func main() {
b, _ := ioutil.ReadAll(os.Stdin)
template.HTMLFormatter(os.Stdout, "", b)
}