Text Processing
77 libraries in this category
Fast and Elegant Scraping Framework for Gophers
GoQuery brings a syntax and a set of features similar to jQuery to the Go language
Shell parser and formatter
Markdown processor in Go
A comprehensive, Lodash-like utility library for Go
A Markdown parser written in Go. Easy to extend, standard (CommonMark) compliant, well structured
TOML configuration format (encoder/decoder with reflection)
Formatters for time, numbers, and memory size to human readable format
Convert HTML to Markdown. Even works with entire websites and can be extended through rules
HTML Sanitizer
Parse RSS and Atom feeds in Go
Convert data from SQL databases or document formats like CSV or Excel into formats such as JSON, Excel, CSV, HTML, Markdown, XML, and YAML
Go library for encoding structs into URL query parameters
Go library for the TOML format with query support and handy cli tools
Pretty-print Go structs with Laravel/Symfony-style dumps, full type info, colorized CLI output, cycle detection, and private field access
Natural EN and RU language date/time parser with pluggable rules
Extract urls from text
A semantic grep tool using word embeddings to find semantically similar matches. For example, searching for "death" will find "dead", "killing", "murder"
A collection of common regular expressions for Go
An XPath query package for HTML, lets you extract data or evaluate from HTML documents by an XPath expression
Functions to get fixed width of the character or string
Web scraping Framework to turn websites into structured data
Encode / decode XML as JSON or map[string]interface{}; extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages
Formats and parses numeric byte values (10K, 2M, 3G, etc.)
Parses the Graphviz DOT language
Easily pretty-print your tabular data with Go
Declarative unmarshalling of HTML using struct tags with jQuery syntax (uses GoQuery)
Production regex engine with Rust regex-crate architecture: multi-engine DFA/NFA, SIMD prefilters, drop-in stdlib replacement
NMEA parser library for the Go language
Pretty print any GO variable with ease, an alternative to Go's `fmt.Printf("%#v")`
Regular expressions builder
Fast string sorting algorithm
Editorconfig file parser and manipulator for Go
Match regex expression named groups into go struct using struct tags and automatic parsing
Markdown builder that generates GitHub Flavored Markdown and mermaid diagrams through method chaining
Parse any string, slice or infinite buffer to any tokens
iTunes Compliant and RSS 2.0 Podcast Generator in Golang
Parse and format vCard
Universal JSON, BSON, YAML, XML translator to ANY format using templates
Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler
Web crawler that converts documentation sites to clean Markdown and JSONL for LLM ingestion (RAG, training data)
Simple and lightweight wildcard pattern matching
DID (Decentralized Identifiers) Parser and Stringer in Go
Library for generating random strings from regular expressions
Fixed-width text formatting (encoder/decoder with reflection)
Markdown-to-PDF converter with CLI and Go library APIs
Handles address representation, validation and formatting
A general purpose application that aligns text
Count and expand Regular Expressions into all matching Strings
A sanitization-based swear filter for Go
A Lexer and Parser for Valves Data Format (known as vdf) written in Go
Placeholder and wildcard text parsing for CLI tools and bots
Sanitize, normalize and compare fuzzy text
Petrovich is the library which inflects Russian names to given grammatical case
Parses human names into individual name parts
High performance effective top level domains (eTLD) extraction module
Produces a set of tags from given source
Convert xml or json to go struct
A package for scraping recipes from websites
High-performance Aho-Corasick multi-pattern string matching with DFA compilation and SIMD prefilter, up to 7 GB/s throughput (part of [coregx](https://github.com/coregx) ecosystem)
Parses indented code (python, pixy, scarlet, etc.) and returns a tree structure
Common case conversions covering common initialisms
fast, auto-fixing Markdown linter and formatter. Checks style, readability, structure, and cross-file integrity
Alternative suggestions with respect to keyboard layouts
Output go structures into multiple formats (YAML/JSON/etc) in your command line app
Seamlessly fetch paginated data from any source. Simple and high performance API scraping included
Converts bbCode to HTML that allows you to add support for custom bbCode tags
Document object identifier (doi) parser in Go
string argument parser that understands quotes and backslashes
Scan and parse LL(1) grammars simply and efficiently
High performance [LTSV (Labeled Tab Separated Value)](http://ltsv.org/) reader for Go
Go language library for parsing Sitemaps
High-performance Unicode character width calculation with SWAR optimization, O(1) lookup tables, and ZWJ emoji support
Wraps text at end of lines. Implementation of `textwrap` module from Python
Rich rendering of YAML as HTML in Go
Traverse, navigate, filter, and otherwise process trees of [html.Node](https://pkg.go.dev/golang.org/x/net/html#Node) objects
Package provides a generic interface to encoders and decoders