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

ringbufferdemo/v0 package

Overview

Package ringbufferdemo is a small gnoweb demo of the fixed-capacity FIFO provided by the p/moul/x/daily/ringbuffer(/p/moul/x/daily/ringbuffer/v0) library: it pushes more entries than the buffer can hold and shows what survives, plus what each overflowing push evicted.

It contains no buffer logic of its own. Stateless, so Render is deterministic.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Param

Command

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

Result