mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-28 04:46:29 -04:00
21 lines
304 B
Go
21 lines
304 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/charmbracelet/glamour"
|
|
)
|
|
|
|
func main() {
|
|
in := `# Hello World
|
|
|
|
This is a simple example of glamour!
|
|
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples).
|
|
|
|
Bye!
|
|
`
|
|
|
|
out, _ := glamour.Render(in, "dark")
|
|
fmt.Print(out)
|
|
}
|