Documentation ¶
Index ¶
- Variables
- func ExtractDate(text string, now time.Time) (date time.Time, ok bool)
- func FindCanonicalURL(url string, secondTry bool) (out string)
- func GetUserAgent() string
- func HashTagText(words []string) string
- func LoadJSON(filename string, target interface{}) (err error)
- func LogError(err error, format string, a ...interface{}) bool
- func SaveJSON(filename string, source interface{}) (err error)
- func TweetURL(tweet *twitter.Tweet) string
Constants ¶
This section is empty.
Variables ¶
View Source
var NorthAmericaTZ = time.FixedZone("CDT", -5*60*60)
This is the time zone for Texas For other operations SpaceX also uses EDT, but doesn't seem to be the case with Starship stuff
Functions ¶
func ExtractDate ¶
ExtractDate extracts human-readable dates from text
func FindCanonicalURL ¶
FindCanonicalURL returns the canonical URL of an article if possible, else the original input is returned
func GetUserAgent ¶
func GetUserAgent() string
func HashTagText ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.