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

v0 state

Back to all declarations

owner

.uverse.address

Value

<gnolang.StringValue>

counter

int

Value

0

successor

string

// pkgpath that replaced this one; "" while this version is live

Value

""

Inc

func(n int)

Inc adds n. It aborts once a successor has been declared.

Open
OID
0a0a81…99bc:8
Inc details

Inspect func

Get

func() int

Get returns this version's final (or current) total.

Open
OID
0a0a81…99bc:10
Get details

Inspect func

Successor

func() string

Successor is the path callers should move to, or "" while this version is live.

Open
OID
0a0a81…99bc:11
Successor details

Inspect func

Retire

func(pkgPath string)

Retire freezes this version and names its replacement. Owner-gated, one-way.

Open
OID
0a0a81…99bc:12
Retire details

Inspect func

assertPkgPath

func(p string)

assertPkgPath rejects anything that is not a gno.land realm path. It exists for Render, not for correctness of the upgrade: the stored path is echoed into markdown, so validating it at write time is what lets Render print it raw. ui.Inline would escape the dots in "gno.land" and turn the one string a reader needs to copy into "gno\\.land".

Open
OID
0a0a81…99bc:14
assertPkgPath details

Inspect func
owner : .uverse.address =<gnolang.StringValue>
Ownable : *v0.Ownable Inspect
counter : int =0
successor : string =""
Inc : func(n int) Inspect
Get : func() int Inspect
Successor : func() string Inspect
Retire : func(pkgPath string) Inspect
Render : func(string) string Inspect
assertPkgPath : func(p string) Inspect