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