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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

crondemo/v0 package

Overview

Package crondemo is a small gnoweb demo of the cron expression parser provided by the p/moul/x/daily/cron(/p/moul/x/daily/cron/v0) library: the grammar, the next firing times of a handful of schedules, the union rule that governs the two day fields, and the expression that never fires.

It contains no scheduling logic of its own, and no state. Every instant on the page is computed from the fixed anchor below rather than from time.Now(), which is what lets an example test pin the output: a block timestamp would make the page different on every call and identical to nothing.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("") / Render("/") -> the full demo

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/crondemo/v0.Render()"

Result