Select a file to view its exact on-chain source. Sorted README → gnomod → sources → tests.
Render(path string) string
Submit(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, version string)
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
# semver — Semantic Versioning on-chain
Demo of the [`p/moul/x/daily/semver`](/p/moul/x/daily/semver/v0) library — a port of `golang.org/x/mod/semver`. Parse `vMAJOR.MINOR.PATCH[-prerelease][+build]` and compare with SemVer 2.0.0 precedence.
## Examples
| a | rel | b | note |
|---|:---:|---|---|
| `1.2.3` | < | `1.2.10` | numeric patch, not lexical |
| `1.0.0-alpha` | < | `1.0.0` | pre-release < release |
| `1.0.0-alpha.1` | < | `1.0.0-alpha.beta` | numeric id < alphanumeric id |
| `1.0.0-rc.1` | < | `1.0.0` | release candidate < final |
| `2.0.0` | = | `2.0.0+build.5` | build metadata ignored |
## Try it
- Compare two versions: [`/1.2.3/1.2.10`](/r/moul/x/daily/semverdemo/v0:1.2.3/1.2.10)
- Submitted list: [`/sorted`](/r/moul/x/daily/semverdemo/v0:sorted)
- Submit on-chain: `Submit("v1.4.2")`
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.