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

crc32demo/v0 package

Overview

Package crc32demo is a small gnoweb demo of the CRC-32 checksum provided by the p/moul/x/daily/crc32(/p/moul/x/daily/crc32/v0) library: it checksums a few strings and shows that a one-character change moves the result completely.

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

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("")       / Render("/") -> the samples table
2Render("/<text>")              -> checksum that text

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/crc32demo/v0.Render()"

Result