Update README and add helloworld example

This commit is contained in:
Christian Muehlhaeuser
2019-12-25 04:31:25 +01:00
parent 3a479d0c85
commit 76ca724f16
2 changed files with 56 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
package main
import (
"fmt"
"github.com/charmbracelet/glamour"
)
func main() {
in := `# Hello World
This is a simple example of glamour!
Check out the other [other examples](https://github.com/charmbracelet/glamour/tree/master/examples).
Bye!
`
out, _ := glamour.Render(in, "dark")
fmt.Printf(out)
}