Created
January 13, 2015 02:00
-
-
Save blizzarddreams/20486eeb306a4d81222f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "net/http" | |
| // "html/template" | |
| "github.com/russross/blackfriday" | |
| ) | |
| func home(w http.ResponseWriter, r *http.Request) { | |
| data := []byte("**Hello World**") | |
| return blackfriday.MarkdownBasic(data) | |
| } | |
| func main() { | |
| http.HandleFunc("/", home) | |
| http.ListenAndServe(":8080", nil) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment