How neticdk/go-stdlib works
Project type and purpose
• This is not a running application but an open‑source Go “stdlib” extension: a collection of standalone Go packages that mirror or extend Go’s standard library.
• Its purpose is to provide utility packages (assert, diff, file operations, sets, unit conversion, versioning, JSON helpers, slice & string utilities, struct utilities) for Go developers.
File structure
• Top‑level directories correspond to individual Go packages:
• assert, require – test helpers
• diff (with subpackages myers, simple) – diff algorithms
• file – file operations
• set – set data structures
• unit – unit formatting & conversion
• version – semantic–versioning functions
• xjson, xslices, xstrings, xstructs – extended JSON, slice, string, struct utilities
• Tooling and configuration at the repo root:
• go.mod/sum, .allowed‑imports, CI workflow (GitHub Actions), Makefile, hack/* scripts for releases and versioning
• Vale styles, linters, and import‑whitelisting define governance
• Tests live next to code in each package; coverage targets are enforced by CI.
README for additional insights
• Emphasis on zero external dependencies (except golang.org/x/*).
• Strong conventions: doc.go in each package, >95% coverage, no external imports.
• Describes purpose of each package and the repository‑wide governance.