Documentation ¶
Index ¶
Constants ¶
View Source
const Invalid = Jid(-1)
View Source
const Prefix = "Jid." // String prefixing HTML ID's based on Jid's.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jid ¶
type Jid int64
Jid is the basis for the HTML `id` attribute for an UI Element within an active Request. It is per-Request, meaning Jid(1) in one Request is not the same as Jid(1) in another.
func ParseInt ¶
ParseInt parses a Jid integer and returns it as a Jid.
Returns jid.Invalid if it's not a valid Jid or an error occurs.
func ParseString ¶
ParseString parses an unquoted Jid string (e.g. `Jid.2`) and returns the Jid value (e.g. Jid(2)).
Returns jid.Invalid if it's not a valid Jid string.
func (Jid) AppendQuote ¶
AppendQuote appends the string format of the Jid surrounded by double quotes.
func (Jid) AppendStartTagAttr ¶
AppendAttr appends `<startTag` followed by the quoted Jid as a HTML id attribute.
Click to show internal directories.
Click to hide internal directories.