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

namereg/v0 package

Function

Canonicalize

func Canonicalize(s string) string
Ask AI Claude ChatGPT

Canonicalize is a delegating shim to r/sys/users.Canonicalize.

HISTORY: namereg/v0 used to host its own per-stem canonical store and its own Canonicalize (l→i only). Option B unified the canonical lookup into r/sys/users keyed by full canonical name with broader substitutions ({l,i,1}→i, {0,o}→o, {-,.,_} stripped). This shim preserves the call-site name for local consumers (blacklist init, IsReserved) and any external consumer that imported the function from namereg/v0 before Option B.

New code should call susers.Canonicalize directly.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/sys/namereg/v0.Canonicalize()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/sys/namereg/v0, for example a function call with arguments.