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.

geohashdemo/v0 package

Overview

Package geohashdemo is a small gnoweb demo of the p/moul/x/daily/geohash(/p/moul/x/daily/geohash/v0) library: it shows a point encoded at growing precision, the box a hash actually names, and the eight cells around one, including the wrap at the antimeridian.

It contains no geohash logic of its own. Stateless and read-only, so Render is fully deterministic and takes nothing from a caller.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("") / Render("/")  -> a point at growing precision
2Render("/cell")           -> the box a hash names
3Render("/neighbors")      -> the eight cells around one, and the wrap

Param

Command

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

Result