helpers

package
v0.0.0-...-1db3ddf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMainInfoFromURL

func ExtractMainInfoFromURL(url string) (string, string, []string, error)

ExtractMainInfoFromURL searches the main content from the given url and returns the text and images

func GetSummary

func GetSummary(content string) string

GetSummary builds the summary from the given content text

func GetSummaryInfo

func GetSummaryInfo(originalText string, summarizedText string, imagesCount int) string

GetSummaryInfo Returns summary information statistics for the original text and summarized text

func IsPositiveAnswer

func IsPositiveAnswer(answer string) bool

IsPositiveAnswer checks if the user has answered positively

func IsURL

func IsURL(text string) bool

IsURL checks if the given text is a website url address

func ReadInputFromUser

func ReadInputFromUser(message string) string

ReadInputFromUser reads the entered message, trims it and returns it

func StoreTextToFile

func StoreTextToFile(path string, title string, text string, images []string) (bool, error)

StoreTextToFile stores text to the given file path. Creates the file if it's missing or appends to it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL