submitted
*v0.Treesubmitted holds versions users have posted on-chain: version string -> submitter.
- OID
- 08f738…8269:4
submitted details
Submit
func(version string)Submit stores a valid version on-chain, tagged with the caller's address, so Render("/sorted") can list everyone's submissions in precedence order. It validates the input with [semver.Parse](/gno.land/p/moul/x/daily/semver/v0#Parse) and panics on anything malformed.
- OID
- 08f738…8269:6
Submit details
Render
func(path string) string- OID
- 08f738…8269:8
Render details
renderHome
func() string- OID
- 08f738…8269:9
renderHome details
renderCompare
func(a string, b string) string- OID
- 08f738…8269:10
renderCompare details
describe
func(label string, s string) string- OID
- 08f738…8269:11
describe details
renderSorted
func() string- OID
- 08f738…8269:12
renderSorted details
entry
typeentry pairs a parsed version with the address that submitted it.
Value
v0.entry
byPrecedence
typebyPrecedence sorts entries ascending. \`sort\` on-chain has no Slice helper, so we implement sort.Interface; ordering defers to semver.Compare on the original strings.
Value
v0.byPrecedence
relSym
func(c int) string- OID
- 08f738…8269:13
relSym details
word
func(c int) string- OID
- 08f738…8269:14
word details
submitted : *v0.Tree Inspect
Submit : func(version string) Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderCompare : func(a string, b string) string Inspect
describe : func(label string, s string) string Inspect
renderSorted : func() string Inspect
entry
:
type
=v0.entry
byPrecedence
:
type
=v0.byPrecedence