Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

gallery/v0 package

Overview

Package gallery is a curated index of art on gno.land, in whichever form the reader can actually consume.

It stores no art. Every piece lives in somebody else's realm; this one renders the ones it can import and points at the ones it cannot.

The target is a parameter

Every page answers to ?fmt=txt as well as the default markdown. The text target is not markdown with the characters deleted: links become numbered footnotes, headings get underlines instead of a leading '#', and art is emitted verbatim rather than fenced. The result is meant to be piped, or read by anything that is not a browser.

?fmt=ansi is deliberately absent. Colour cannot reach gnoweb, so a realm that offered it would be handing every web reader a page of escape bytes. Terminal colour is p/moul/art's Canvas.ANSI, for a consumer that asked for it over something other than gnoweb.

Function

Render

func Render(path string) string

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/gallery/v0.Render()"

Result