# huandu/xstrings

Implements string functions widely used in other languages but absent in Go.

Repository: https://github.com/huandu/xstrings
Canonical: https://ross.abutalabs.com/products/xstrings
Language: Go
License: MIT
License Family: permissive
Topics: go, strings, algorithm
Last push: 2024-06-06T08:26:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4257, "days_push": 818, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1413, forks 70 (observed 2026-08-28T04:04:39.512576+00:00)

## What it is
A Go library providing string manipulation functions commonly found in other languages but missing from Go's standard strings package. Functions are well tested and performance-tuned.

## Use cases
- convert strings to camelCase or snake_case in Go
- center-align a string like Python's str.center
- use Ruby-style string helpers in Go
- expand tabs in strings
- manipulate strings with functions missing from Go's standard library

## When to choose
- you need string utilities from other languages while writing Go
- you want well-tested, performance-tuned string helpers
- you're a new Go developer looking for familiar string functions

## When to avoid
- you only need basic string operations covered by the standard strings package
- you're not working in Go

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: go, cross-platform
- tags: strings, go-library, text-manipulation, string-utilities

## Member repositories
- huandu/xstrings (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.512576+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:16.608963+00:00, confidence not recorded.
  - readme: https://github.com/huandu/xstrings (fetched 2026-08-28T04:04:39.512576+00:00, sha d0cf703b8906)
- Data as of 2026-08-30T08:39:29.467469+00:00.
