util

package
v0.14.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(input string) ([]byte, error)

DecodeBase64 takes a base64-encoded blob, trims the MIME type (if present) and decodes the remaining bytes.

func GetFileExt

func GetFileExt(fileData []byte) string

func ScrapeWebpageHTML

func ScrapeWebpageHTML(doc *goquery.Document) (string, error)

ScrapeWebpageHTML scrape the HTML content of a webpage

func ScrapeWebpageHTMLToMarkdown

func ScrapeWebpageHTMLToMarkdown(html string) (string, error)

ScrapeWebpageHTMLToMarkdown converts an HTML string to Markdown format

func ScrapeWebpageTitle

func ScrapeWebpageTitle(doc *goquery.Document) string

ScrapeWebpageTitle extracts and returns the title from the *goquery.Document

func WriteField

func WriteField(writer *multipart.Writer, key string, value string)

func WriteFile

func WriteFile(writer *multipart.Writer, fileName string, fileData []byte) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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