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

v0 state

Back to all declarations

Render

func(path string) string

Render renders the sieve for gnoweb. Render("") / Render("/") -> first 100 primes + total count up to MaxN Render("/<n>") -> every prime <= n, laid out as a grid

Open
OID
08c188…141a:3
Render details

Inspect func

parseN

func(path string) (int, bool)

parseN extracts n from a Render path like "/1000". Returns hasN=false for the empty/root path.

Open
OID
08c188…141a:5
parseN details

Inspect func

grid

func(primes []int, cols int) string

grid formats primes into a Markdown table with \`cols\` columns per row.

Open
OID
08c188…141a:6
grid details

Inspect func
Render : func(path string) string Inspect
parseN : func(path string) (int, bool) Inspect
grid : func(primes []int, cols int) string Inspect