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.

v1 state

Back to all declarations

MinTasks

untyped bigint

Value

(1 <untyped> bigint)

MaxName

untyped bigint

Value

(40 <untyped> bigint)

MaxHeadline

untyped bigint

Value

(160 <untyped> bigint)

MaxBio

untyped bigint

Value

(600 <untyped> bigint)

MaxSkills

untyped bigint

Value

(6 <untyped> bigint)

MaxSkill

untyped bigint

Value

(24 <untyped> bigint)

MaxPage

untyped bigint

Value

(50 <untyped> bigint)

ErrNoProof

untyped string

Value

"builders: finish a paid task on Gild first"

ErrName

untyped string

Value

"builders: name must be 1 to 40 characters"

ErrHeadline

untyped string

Value

"builders: headline must be 1 to 160 characters"

ErrBio

untyped string

Value

"builders: bio must be at most 600 characters"

ErrSkills

untyped string

Value

"builders: use up to 6 skills of letters, numbers, spaces, + # . or -"

ErrWebsite

untyped string

Value

"builders: website must start with https:// and have no spaces"

ErrGitHub

untyped string

Value

"builders: GitHub must be a username, like octocat"

ErrX

untyped string

Value

"builders: X must be a handle, like gnoland"

ErrNotIn

untyped string

Value

"builders: you are not in the directory"

Entry

type

Entry is one person in the directory. It holds only what the builder wrote about themselves; their Gild stats are read live.

Value

v1.Entry

entries

v0.Tree

// address string -> \*Entry

Open
OID
08f368…ee33:4
entries details

Inspect ref

webPath

string

Value

"/r/g1jw2yrfqnd4fp90qadw88pnjgpden4vgagjvpe6/builders/v1"

SetProfile

func(name string, headline string, bio string, skills string, website string, github string, x string, open bool)

SetProfile creates or updates the caller's profile. Skills is a comma-separated list. Empty links are allowed. It fails unless the caller has finished at least MinTasks paid Gild tasks.

Open
OID
08f368…ee33:8
SetProfile details

Inspect func

SetOpen

func(open bool)

SetOpen flips only the "open to work" switch.

Open
OID
08f368…ee33:9
SetOpen details

Inspect func

Leave

func()

Leave removes the caller from the directory. Their Gild record stays.

Open
OID
08f368…ee33:10
Leave details

Inspect func

IsListed

func(addr .uverse.address) bool

IsListed reports whether addr is in the directory.

Open
OID
08f368…ee33:11
IsListed details

Inspect func

Size

func() int

Size returns how many people are listed.

Open
OID
08f368…ee33:12
Size details

Inspect func

ProfileJSON

func(addr .uverse.address) string

ProfileJSON returns one builder with live Gild stats, or null.

Open
OID
08f368…ee33:13
ProfileJSON details

Inspect func

BuildersJSON

func(offset int, limit int) string

BuildersJSON lists builders with their live Gild stats.

Open
OID
08f368…ee33:14
BuildersJSON details

Inspect func

writeEntry

func(b *strings.Builder, e *v1.Entry)
Open
OID
08f368…ee33:15
writeEntry details

Inspect func

Render

func(path string) string

Render shows the directory, or one profile at u/\<address>.

Open
OID
08f368…ee33:16
Render details

Inspect func

renderProfile

func(addr string) string
Open
OID
08f368…ee33:17
renderProfile details

Inspect func

gildPath

func() string

gildPath is the Gild realm path without the gno.land/r/ prefix, derived from this realm's own namespace so it works wherever both are deployed.

Open
OID
08f368…ee33:18
gildPath details

Inspect func

parseSkills

func(s string) ([]string, bool)

parseSkills splits, trims, lowercases and de-duplicates a comma list.

Open
OID
08f368…ee33:19
parseSkills details

Inspect func

hasControl

func(s string) bool
Open
OID
08f368…ee33:22
hasControl details

Inspect func

mdText

func(s string) string

mdText escapes characters that would change markdown or table layout.

Open
OID
08f368…ee33:25
mdText details

Inspect func
MinTasks : untyped bigint =(1 <untyped> bigint)
MaxName : untyped bigint =(40 <untyped> bigint)
MaxHeadline : untyped bigint =(160 <untyped> bigint)
MaxBio : untyped bigint =(600 <untyped> bigint)
MaxSkills : untyped bigint =(6 <untyped> bigint)
MaxSkill : untyped bigint =(24 <untyped> bigint)
MaxPage : untyped bigint =(50 <untyped> bigint)
ErrNoProof : untyped string ="builders: finish a paid task on Gild first"
ErrName : untyped string ="builders: name must be 1 to 40 characters"
ErrHeadline : untyped string ="builders: headline must be 1 to 160 characters"
ErrBio : untyped string ="builders: bio must be at most 600 characters"
ErrSkills : untyped string ="builders: use up to 6 skills of letters, numbers, spaces, + # . or -"
ErrWebsite : untyped string ="builders: website must start with https:// and have no spaces"
ErrGitHub : untyped string ="builders: GitHub must be a username, like octocat"
ErrX : untyped string ="builders: X must be a handle, like gnoland"
ErrNotIn : untyped string ="builders: you are not in the directory"
Entry : type =v1.Entry
entries : v0.Tree Inspect
webPath : string ="/r/g1jw2yrfqnd4fp90qadw88pnjgpden4vgagjvpe6/builders/v1"
init.20 : func() Inspect
SetProfile : func(name string, headline string, bio string, skills string, website string, github string, x string, open bool) Inspect
SetOpen : func(open bool) Inspect
Leave : func() Inspect
IsListed : func(addr .uverse.address) bool Inspect
Size : func() int Inspect
ProfileJSON : func(addr .uverse.address) string Inspect
BuildersJSON : func(offset int, limit int) string Inspect
writeEntry : func(b *strings.Builder, e *v1.Entry) Inspect
Render : func(path string) string Inspect
renderProfile : func(addr string) string Inspect
gildPath : func() string Inspect
parseSkills : func(s string) ([]string, bool) Inspect
isGitHub : func(s string) bool Inspect
isX : func(s string) bool Inspect
hasControl : func(s string) bool Inspect
gnot : func(u int64) string Inspect
mdText : func(s string) string Inspect
jsonStr : func(s string) string Inspect