mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-02 23:17:34 -04:00
Update README and add helloworld example
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user