Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

blog state

Back to all declarations

owner

.uverse.address

Value

<gnolang.StringValue>

pendingOwner

.uverse.address

Value

<zero>

Post

func(slug string, title string, body string, pubDate string, authors string, tags string)

Post publishes a new post. pubDate is RFC3339, or empty for the block time. authors and tags are comma-separated.

Open
OID
09a592…879c:15
Post details

Inspect func

Edit

func(slug string, title string, body string, pubDate string, authors string, tags string)

Edit replaces the post at slug. An empty pubDate keeps the old date.

Open
OID
09a592…879c:16
Edit details

Inspect func

Remove

func(slug string)

Remove deletes the post at slug.

Open
OID
09a592…879c:17
Remove details

Inspect func

AddWriter

func(addr .uverse.address)

AddWriter lets addr add, edit and remove posts. Owner only.

Open
OID
09a592…879c:18
AddWriter details

Inspect func

RemoveWriter

func(addr .uverse.address)

RemoveWriter takes writing rights away from addr. Owner only.

Open
OID
09a592…879c:19
RemoveWriter details

Inspect func

ProposeOwner

func(addr .uverse.address)

ProposeOwner names a new owner, who must then call AcceptOwnership. Owner only. Proposing the empty address cancels a pending proposal.

Open
OID
09a592…879c:20
ProposeOwner details

Inspect func

AcceptOwnership

func()

AcceptOwnership completes a handover started with ProposeOwner.

Open
OID
09a592…879c:21
AcceptOwnership details

Inspect func

PendingOwner

func() .uverse.address
Open
OID
09a592…879c:23
PendingOwner details

Inspect func

IsWriter

func(addr .uverse.address) bool

IsWriter reports whether addr may add, edit and remove posts.

Open
OID
09a592…879c:24
IsWriter details

Inspect func

Render

func(path string) string

Render shows the blog. Only "", "p/\<slug>" and "t/\<tag>" are answered; anything else gets "404", so nothing from the URL reaches the page.

Open
OID
09a592…879c:25
Render details

Inspect func

isSlug

func(s string) bool

isSlug reports whether s is 1 to 100 characters of a-z, 0-9, '-' or '\_'.

Open
OID
09a592…879c:27
isSlug details

Inspect func

mustTags

func(tags string) []string
Open
OID
09a592…879c:29
mustTags details

Inspect func

splitList

func(s string) []string

splitList splits a comma-separated list, trimming spaces and dropping empty entries.

Open
OID
09a592…879c:30
splitList details

Inspect func

mustUserCall

func() .uverse.address
Open
OID
09a592…879c:31
mustUserCall details

Inspect func

mustBeOwner

func() .uverse.address
Open
OID
09a592…879c:32
mustBeOwner details

Inspect func

mustBeWriter

func() .uverse.address
Open
OID
09a592…879c:33
mustBeWriter details

Inspect func

checkErr

func(err .uverse.error)
Open
OID
09a592…879c:34
checkErr details

Inspect func
owner : .uverse.address =<gnolang.StringValue>
pendingOwner : .uverse.address =<zero>
writers : v0.Tree Inspect
b : *v0.Blog Inspect
init.4 : func() Inspect
Post : func(slug string, title string, body string, pubDate string, authors string, tags string) Inspect
Edit : func(slug string, title string, body string, pubDate string, authors string, tags string) Inspect
Remove : func(slug string) Inspect
AddWriter : func(addr .uverse.address) Inspect
RemoveWriter : func(addr .uverse.address) Inspect
ProposeOwner : func(addr .uverse.address) Inspect
AcceptOwnership : func() Inspect
Owner : func() .uverse.address Inspect
PendingOwner : func() .uverse.address Inspect
IsWriter : func(addr .uverse.address) bool Inspect
Render : func(path string) string Inspect
isRoute : func(path string) bool Inspect
isSlug : func(s string) bool Inspect
mustSlug : func(s string) Inspect
mustTags : func(tags string) []string Inspect
splitList : func(s string) []string Inspect
mustUserCall : func() .uverse.address Inspect
mustBeOwner : func() .uverse.address Inspect
mustBeWriter : func() .uverse.address Inspect
checkErr : func(err .uverse.error) Inspect