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.

v0 state

Back to all declarations

anchor

time.Time

anchor is the instant every "next" on this page is measured from: a Tuesday morning, deliberately mid-minute so the exclusive boundary is visible.

Open
OID
0fbcc2…4399:4
anchor details

Inspect ref

schedules

[]struct{...} (len=9)

schedules is the worked example: one line per shape of the grammar.

Open
OID
0fbcc2…4399:6
schedules details (len=9)

+9 more Inspect slice

macros

[]struct{...} (len=5)

macros is the @shorthand table, each paired with what it expands to.

Open
OID
0fbcc2…4399:17
macros details (len=5)

+5 more Inspect slice

Render

func(path string) string

Render renders the demo for gnoweb. Render("") / Render("/") -> the full demo

Open
OID
0fbcc2…4399:23
Render details

Inspect func

stamp

func(t time.Time) string

stamp 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.

Open
OID
0fbcc2…4399:25
stamp details

Inspect func

pad2

func(v int) string

pad2 renders 0..99 with a leading zero.

Open
OID
0fbcc2…4399:26
pad2 details

Inspect func

weekdayName

func(d time.Weekday) string

weekdayName is the three-letter form, spelled the way the grammar spells it.

Open
OID
0fbcc2…4399:27
weekdayName details

Inspect func
anchor : time.Time Inspect
schedules : []struct{...} (len=9) Inspect
macros : []struct{...} (len=5) Inspect
Render : func(path string) string Inspect
stamp : func(t time.Time) string Inspect
pad2 : func(v int) string Inspect
weekdayName : func(d time.Weekday) string Inspect