Documentation ¶
Index ¶
- Variables
- func Exists(path string) bool
- func GetCacheFilePath() (string, error)
- func GetConfigFilePath() (string, error)
- func IsDigit(input byte) bool
- func IsHeadless() bool
- func IsLetter(input byte) bool
- func IsLynxPresent() bool
- func IsSpecialChar(input byte) bool
- func LineOf(width int, symbol string) string
- func OpenWithBrowser(url string) error
- func OpenWithLynx(url string) error
- func PadToLeft(s string, len int) string
- func PadToRight(s string, len int) string
- func RenderArticleRow(pubDate time.Time, title string) string
- func RenderFeedRow(unreadCount, itemsLen int, name string) string
- func StripComments(bs []byte) []byte
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetCacheFilePath ¶
func GetConfigFilePath ¶
func IsHeadless ¶
func IsHeadless() bool
headless detects if this is a headless machine by looking up the DISPLAY environment variable
func IsLynxPresent ¶
func IsLynxPresent() bool
func IsSpecialChar ¶
isSpecialChar returns if a given input char is a reserved char as per RFC 3986 see paragraph 2.2: https://www.ietf.org/rfc/rfc3986.txt
func OpenWithBrowser ¶
openWithBrowser opens the selected article with the default browser for desktop environment. The environment variable DISPLAY is used to detect if the app is running on a headless machine. see: https://wiki.debian.org/DefaultWebBrowser
func OpenWithLynx ¶
openWithLynx opens the selected article with lynx. see: https://lynx.invisible-island.net/
func PadToRight ¶ added in v0.3.4
func RenderFeedRow ¶
func StripComments ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.