Cute Gopher Mascot

The Best Go Libraries For Text Processing (73)

Discover the best Go libraries for Text Processing! Find the perfect tools to streamline your development and boost productivity. From pagser to godump (goforj), we've got you covered. Let the coding begin!

pagser

Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler

See More! ๐Ÿš€

godump (goforj)

Pretty-print Go structs with Laravel/Symfony-style dumps, full type info, colorized CLI output, cycle detection, and private field access

See More! ๐Ÿš€

encdec

Package provides a generic interface to encoders and decoders

See More! ๐Ÿš€

sh

Shell parser and formatter

See More! ๐Ÿš€

tokenizer

Parse any string, slice or infinite buffer to any tokens

See More! ๐Ÿš€

regroup

Match regex expression named groups into go struct using struct tags and automatic parsing

See More! ๐Ÿš€

blackfriday

Markdown processor in Go

See More! ๐Ÿš€

htmlyaml

Rich rendering of YAML as HTML in Go

See More! ๐Ÿš€

go-querystring

Go library for encoding structs into URL query parameters

See More! ๐Ÿš€

gonameparts

Parses human names into individual name parts

See More! ๐Ÿš€

address

Handles address representation, validation and formatting

See More! ๐Ÿš€

align

A general purpose application that aligns text

See More! ๐Ÿš€

bytes

Formats and parses numeric byte values (10K, 2M, 3G, etc.)

See More! ๐Ÿš€

go-fixedwidth

Fixed-width text formatting (encoder/decoder with reflection)

See More! ๐Ÿš€

go-humanize

Formatters for time, numbers, and memory size to human readable format

See More! ๐Ÿš€

gotabulate

Easily pretty-print your tabular data with Go

See More! ๐Ÿš€

sq

Convert data from SQL databases or document formats like CSV or Excel into formats such as JSON, Excel, CSV, HTML, Markdown, XML, and YAML

See More! ๐Ÿš€

bbConvert

Converts bbCode to HTML that allows you to add support for custom bbCode tags

See More! ๐Ÿš€

go-toml

Go library for the TOML format with query support and handy cli tools

See More! ๐Ÿš€

goldmark

A Markdown parser written in Go. Easy to extend, standard (CommonMark) compliant, well structured

See More! ๐Ÿš€

goq

Declarative unmarshalling of HTML using struct tags with jQuery syntax (uses GoQuery)

See More! ๐Ÿš€

html-to-markdown

Convert HTML to Markdown. Even works with entire websites and can be extended through rules

See More! ๐Ÿš€

htmlquery

An XPath query package for HTML, lets you extract data or evaluate from HTML documents by an XPath expression

See More! ๐Ÿš€

htree

Traverse, navigate, filter, and otherwise process trees of [html.Node](https://pkg.go.dev/golang.org/x/net/html#Node) objects

See More! ๐Ÿš€

mxj

Encode / decode XML as JSON or map[string]interface{}; extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages

See More! ๐Ÿš€

toml

TOML configuration format (encoder/decoder with reflection)

See More! ๐Ÿš€

did

DID (Decentralized Identifiers) Parser and Stringer in Go

See More! ๐Ÿš€

doi

Document object identifier (doi) parser in Go

See More! ๐Ÿš€

go-fasttld

High performance effective top level domains (eTLD) extraction module

See More! ๐Ÿš€

go-nmea

NMEA parser library for the Go language

See More! ๐Ÿš€

go-vcard

Parse and format vCard

See More! ๐Ÿš€

godump

Pretty print any GO variable with ease, an alternative to Go's `fmt.Printf("%#v")`

See More! ๐Ÿš€

normalize

Sanitize, normalize and compare fuzzy text

See More! ๐Ÿš€

prattle

Scan and parse LL(1) grammars simply and efficiently

See More! ๐Ÿš€

vdf

A Lexer and Parser for Valves Data Format (known as vdf) written in Go

See More! ๐Ÿš€

when

Natural EN and RU language date/time parser with pluggable rules

See More! ๐Ÿš€

coregex

Production regex engine with Rust regex-crate architecture: multi-engine DFA/NFA, SIMD prefilters, drop-in stdlib replacement

See More! ๐Ÿš€

genex

Count and expand Regular Expressions into all matching Strings

See More! ๐Ÿš€

rex

Regular expressions builder

See More! ๐Ÿš€

bluemonday

HTML Sanitizer

See More! ๐Ÿš€

colly

Fast and Elegant Scraping Framework for Gophers

See More! ๐Ÿš€

dataflowkit

Web scraping Framework to turn websites into structured data

See More! ๐Ÿš€

go-recipe

A package for scraping recipes from websites

See More! ๐Ÿš€

go-sitemap-parser

Go language library for parsing Sitemaps

See More! ๐Ÿš€

GoQuery

GoQuery brings a syntax and a set of features similar to jQuery to the Go language

See More! ๐Ÿš€

walker

Seamlessly fetch paginated data from any source. Simple and high performance API scraping included

See More! ๐Ÿš€

xurls

Extract urls from text

See More! ๐Ÿš€

podcast

iTunes Compliant and RSS 2.0 Podcast Generator in Golang

See More! ๐Ÿš€

lancet

A comprehensive, Lodash-like utility library for Go

See More! ๐Ÿš€

radix

Fast string sorting algorithm

See More! ๐Ÿš€

TySug

Alternative suggestions with respect to keyboard layouts

See More! ๐Ÿš€

uniwidth

High-performance Unicode character width calculation with SWAR optimization, O(1) lookup tables, and ZWJ emoji support

See More! ๐Ÿš€

w2vgrep

A semantic grep tool using word embeddings to find semantically similar matches. For example, searching for "death" will find "dead", "killing", "murder"

See More! ๐Ÿš€

go-output-format

Output go structures into multiple formats (YAML/JSON/etc) in your command line app

See More! ๐Ÿš€

gofeed

Parse RSS and Atom feeds in Go

See More! ๐Ÿš€

gographviz

Parses the Graphviz DOT language

See More! ๐Ÿš€

ahocorasick

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)

See More! ๐Ÿš€

textwrap

Wraps text at end of lines. Implementation of `textwrap` module from Python

See More! ๐Ÿš€

bafi

Universal JSON, BSON, YAML, XML translator to ANY format using templates

See More! ๐Ÿš€

allot

Placeholder and wildcard text parsing for CLI tools and bots

See More! ๐Ÿš€

codetree

Parses indented code (python, pixy, scarlet, etc.) and returns a tree structure

See More! ๐Ÿš€

commonregex

A collection of common regular expressions for Go

See More! ๐Ÿš€

editorconfig-core-go

Editorconfig file parser and manipulator for Go

See More! ๐Ÿš€

ltsv

High performance [LTSV (Labeled Tab Separated Value)](http://ltsv.org/) reader for Go

See More! ๐Ÿš€

parseargs-go

string argument parser that understands quotes and backslashes

See More! ๐Ÿš€

xj2go

Convert xml or json to go struct

See More! ๐Ÿš€

go-wildcard

Simple and lightweight wildcard pattern matching

See More! ๐Ÿš€

goregen

Library for generating random strings from regular expressions

See More! ๐Ÿš€

gofuckyourself

A sanitization-based swear filter for Go

See More! ๐Ÿš€

Tagify

Produces a set of tags from given source

See More! ๐Ÿš€

go-runewidth

Functions to get fixed width of the character or string

See More! ๐Ÿš€

kace

Common case conversions covering common initialisms

See More! ๐Ÿš€

petrovich

Petrovich is the library which inflects Russian names to given grammatical case

See More! ๐Ÿš€