Documentation ¶
Index ¶
- func DecodeBase64(input string) ([]byte, error)
- func GetFileExt(fileData []byte) string
- func ScrapeWebpageHTML(doc *goquery.Document) (string, error)
- func ScrapeWebpageHTMLToMarkdown(html string) (string, error)
- func ScrapeWebpageTitle(doc *goquery.Document) string
- func WriteField(writer *multipart.Writer, key string, value string)
- func WriteFile(writer *multipart.Writer, fileName string, fileData []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 takes a base64-encoded blob, trims the MIME type (if present) and decodes the remaining bytes.
func GetFileExt ¶
func ScrapeWebpageHTML ¶
ScrapeWebpageHTML scrape the HTML content of a webpage
func ScrapeWebpageHTMLToMarkdown ¶
ScrapeWebpageHTMLToMarkdown converts an HTML string to Markdown format
func ScrapeWebpageTitle ¶
ScrapeWebpageTitle extracts and returns the title from the *goquery.Document
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.