utils

package
v0.0.0-...-5811d3a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToJSON

func BytesToJSON(data []byte) (map[string]interface{}, error)

BytesToJSON converts bytes to structured JSON format (auto-detects format)

func HTMLToText

func HTMLToText(htmlContent string) string

HTMLToText extracts clean text from HTML content

func MarkdownToJSON

func MarkdownToJSON(markdownContent string) (map[string]interface{}, error)

MarkdownToJSON converts Markdown content to structured JSON format

func MarkdownToText

func MarkdownToText(markdownContent string) string

MarkdownToText extracts clean text from Markdown content

func OneNoteHTMLToJSON

func OneNoteHTMLToJSON(htmlContent string) (map[string]interface{}, error)

OneNoteHTMLToJSON converts OneNote HTML content to clean JSON format

func TextToJSON

func TextToJSON(textContent string) (map[string]interface{}, error)

TextToJSON converts plain text to structured JSON format

func XMLToJSON

func XMLToJSON(xmlContent string) (map[string]interface{}, error)

XMLToJSON converts XML content to structured JSON format

func XMLToText

func XMLToText(xmlContent string) string

XMLToText extracts clean text from XML content

Types

This section is empty.

Jump to

Keyboard shortcuts

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