package main import ( "fmt" "log" "strings" astro "github.com/snowpackjs/go-astro/internal" ) func main() { s := `--- // Component Imports import Counter from '../components/Counter.jsx' // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ ---

Hello React!

` doc, err := astro.Parse(strings.NewReader(s)) if err != nil { log.Fatal(err) } w := new(strings.Builder) astro.Render(w, doc) fmt.Println(w.String()) }