1package wiki
23import"strings"45// ExampleRender shows what an article looks like once the library has6// rewritten its wikilinks and hoisted its categories into the footer.7//8// It prints only the structural lines: the header carries a timestamp and the9// footer a byte count, and neither is stable across the package's other tests.10// The full output is pinned by TestRenderRoutes and by the library's own11// render tests.12funcExampleRender(){13for_, line :=range strings.Split(Render("Tendermint2"),"\n"){14switch{15case strings.HasPrefix(line,"# "),16 strings.HasPrefix(line,"**Categories:**"),17 strings.HasPrefix(line,"Tendermint2 is"):18print(line +"\n")19}20}21// Output:22// # Tendermint223// Tendermint2 is the consensus engine under [Gno land](/r/moul/x/wiki/v0:Gno_land).24// **Categories:** [Chains](/r/moul/x/wiki/v0:Category:Chains)25}26