Documentation ¶
Overview ¶
Package link provides the interface for a link and link related primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type L ¶
type L interface { // A contextual/presentation dominating ancestor element, if any. Ancestor() string // The destination URL of the link. URL() string // The optimal visual form for this link. May include for example the text surrounding the link to provide // context. String() string }
L is a URL and possibly some context regarding the link's situation in the HTML document it originates from.
type SELink ¶
type SELink struct { Relative string Target string Text string SeSite string PostID int PostType int }
SELink is a link in a post on a Stack Exchange site.
type Status ¶
Status is a status report on the resource pointed to by a link.
func (Status) Marshal ¶
Marshal returns the marshalled bytes of the receiver status.
Employs the use of the marshal method generated by the Protocol Buffers format data structure defintion.
See the Protocol Buffers format data structure definition of the Status message for the expected structure of the bytes.
Click to show internal directories.
Click to hide internal directories.