Documentation ¶
Index ¶
- func EnrichContent(content string, wrapAt int) (string, []string)
- func ExtractIDsFromLink(link string) (boardID string, threadID string, messageID string, err error)
- func HandleMouseClickEventOnList(e ui.Event, list *widgets.List) bool
- func HandleMouseClickEventOnTabBar(e ui.Event, bar *widgets.TabPane) bool
- func JoinURL(base string, paths ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichContent ¶
EnrichContent enriches links in content with numbers, returns enriched content and list of links It also wraps the text at the number of characters at wrapAt
func ExtractIDsFromLink ¶
ExtractIDsFromLink returns boardID, threadID and messageID from a given forum link. Returns err if one if the IDs cannot be extracted
func HandleMouseClickEventOnList ¶
HandleMouseClickEventOnList returns true if the list has been clicked and set's the active element of the list to the element clicked.
func HandleMouseClickEventOnTabBar ¶
HandleMouseClickEventOnTabBar returns true if the TabPane has been clicked, and sets the ActiveTabIndex of the TabPane to the tab clicked
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.