Post
typePost is a single blog entry. It carries no id field: the id belongs to the store, which hands it back on lookup and iteration.
Value
v1.Post
posts
*v0.Storeposts holds every published post. The store keys by seqid, so iteration is in publication order for any number of posts; v0 kept its own nextID plus a key() that zero-padded to width 12 and stopped ordering past it.
- OID
- 0e45f2…8453:4
posts details
Publish
func(title string, body string) intPublish creates a new post authored by the caller and returns its id. It is a state-mutating exported function, so it takes \`cur realm\`.
- OID
- 0e45f2…8453:7
Publish details
PostCount
func() intPostCount returns the number of published posts.
- OID
- 0e45f2…8453:9
PostCount details
snippet
func(body string) stringsnippet returns a short one-line preview of the body.
- OID
- 0e45f2…8453:10
snippet details
Render
func(path string) stringRender lists all posts newest-first at the root, or a single post's full text at path "/\<id>". Render is NOT a crossing function.
- OID
- 0e45f2…8453:11
Render details
renderList
func() string- OID
- 0e45f2…8453:12
renderList details
renderPost
func(p *v1.Post) string- OID
- 0e45f2…8453:13