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

murmur3demo/v0 package

Overview

Package murmur3demo is a small gnoweb demo of the MurmurHash3 x86_32 hash provided by the p/moul/x/daily/murmur3(/p/moul/x/daily/murmur3/v0) library: it hashes a few strings, runs the SMHasher self-test on chain, and shows a thousand keys spreading evenly over eight shards.

It contains no hashing 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, the self-test, the spread
2Render("/<text>")              -> hash and shard that text

Param

Command

gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/x/daily/murmur3demo/v0.Render()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/murmur3demo/v0, for example a function call with arguments.