Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { // Settable stuff DestinationUnknown bool // contains filtered or unexported fields }
Link is an abstraction for universal representation of links, be they links in mycomarkup links or whatever.
func (*Link) Classes ¶
Classes returns CSS class string for given link. It is not wrapped in any quotes, wrap yourself.
func (*Link) Href ¶
Href returns content for the href attrubite for hyperlink. You should always use it.
type LinkType ¶
type LinkType int
LinkType tells what type the given link is.
const ( // LinkInvalid is an error state for LinkType. LinkInvalid LinkType = iota // LinkLocalRoot is a link like "/list", "/user-list", etc. LinkLocalRoot // LinkLocalHypha is a link like "test", "../test", etc. LinkLocalHypha // LinkExternal is an external link with specified protocol. LinkExternal // LinkInterwiki is currently left unused. LinkInterwiki )
Click to show internal directories.
Click to hide internal directories.