Documentation ¶
Index ¶
- func ConvertDataFrameToMarkdownTable(rows [][]string) string
- func DecodeBase64(input string) ([]byte, error)
- func GetContentTypeFromBase64(base64String string) (string, error)
- func GetDomainFromURL(urlStr string) (string, error)
- func GetFileBase64Content(base64String string) string
- func GetFileExt(fileData []byte) string
- func GetFileType(base64String, filename string) (string, error)
- func GetFileTypeByFilename(filename string) (string, error)
- func GetHeaderAuthorization(vars map[string]any) string
- func GetInstillRequesterUID(vars map[string]any) string
- func GetInstillUserUID(vars map[string]any) string
- func ScrapeWebpageDescription(doc *goquery.Document) string
- func ScrapeWebpageHTML(doc *goquery.Document) (string, error)
- func ScrapeWebpageHTMLToMarkdown(html, domain string) (string, error)
- func ScrapeWebpageTitle(doc *goquery.Document) string
- func StripProtocolFromURL(url string) string
- func TransformContentTypeToFileExtension(contentType string) 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 GetDomainFromURL ¶
func GetFileBase64Content ¶
func GetFileExt ¶
func GetFileType ¶
func GetFileTypeByFilename ¶
func GetHeaderAuthorization ¶
func GetInstillRequesterUID ¶
func GetInstillUserUID ¶
func ScrapeWebpageDescription ¶
ScrapeWebpageDescription extracts and returns the description from the *goquery.Document. If the description does not exist, an empty string is returned The description is found by looking for the meta tag with the name "description" and returning the content attribute
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
func StripProtocolFromURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.