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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

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
Ask AI Claude ChatGPT

Param

Command

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

Result