Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var C = conf.Configuration
Functions ¶
func Run ¶
The main function initializes and runs a terminal-based news reader application called StarTerm, which fetches news headlines from an RSS feed and allows the user to navigate and open the full news articles.
func StatusCode ¶
StatusCode performs an HTTP request to the specified page and returns the status code and status message. The status code is compared to the specified success code, and if they match, the status message for online is returned. If the status code does not match the success code, the status message for offline is returned.
The function takes the following parameters:
PAGE: The URL of the page to request. AUTH: The authorization header value to use for the request. SUCCESS: The expected status code for a successful response.
The function returns the status message for the specified status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.