anchor
time.Timeanchor is the instant every "next" on this page is measured from: a Tuesday morning, deliberately mid-minute so the exclusive boundary is visible.
- OID
- 0fbcc2…4399:4
anchor details
schedules
[]struct{...}schedules is the worked example: one line per shape of the grammar.
- OID
- 0fbcc2…4399:6
schedules details
macros
[]struct{...}macros is the @shorthand table, each paired with what it expands to.
- OID
- 0fbcc2…4399:17
macros details
Render
func(path string) stringRender renders the demo for gnoweb. Render("") / Render("/") -> the full demo
- OID
- 0fbcc2…4399:23
Render details
stamp
func(t time.Time) stringstamp formats an instant as the page shows it: date, minute, weekday. Written out with strconv rather than reached for from a formatter because ufmt/v0 has no width flags, and a zero-padded minute is the whole point.
- OID
- 0fbcc2…4399:25
stamp details
pad2
func(v int) stringpad2 renders 0..99 with a leading zero.
- OID
- 0fbcc2…4399:26
pad2 details
weekdayName
func(d time.Weekday) stringweekdayName is the three-letter form, spelled the way the grammar spells it.
- OID
- 0fbcc2…4399:27