Commit Graph
3 Commits
Author SHA1 Message Date
fen a67c8fd140 Bump Go toolchain to 1.27.2 and x/crypto to v0.58.0
CI / test (pull_request) Successful in 37s
CI / docker (pull_request) Skipped
Clears 9 reachable stdlib govulncheck findings (all fixed in go1.27.2).
Remaining: GO-2026-5932 (x/crypto/openpgp, module-level only, no fix
available; our code does not call it).
2026-10-16 16:45:32 -05:00
poslop efa8c7145c Language detection: switch to go-enry with hint-seeded classifier (#41)
CI / test (push) Successful in 35s
CI / docker (push) Skipped
- Add github.com/go-enry/go-enry/v2 dependency to go.mod
- guessLang: JSON fast path, then enry strategies (shebangs, XML, modelines,
  content heuristics), then enry's Linguist-trained Bayesian classifier over
  regex-hint candidate languages; curated dropdown expanded with typescript,
  html, css, xml, php, ruby, perl, lua, dockerfile, toml, ini, diff, csharp
- enry display names normalized to lowercase stored ids (Dockerfile->dockerfile,
  Shell->bash, C#->csharp); unsupported languages render unhighlighted
- Tests: existing languages, all new languages, magic markers (enry shebang/
  DOCTYPE/FROM/diff handling), canonical mapping
2026-09-08 21:25:36 -05:00
poslop 7375de249d Phase 1 API: pastes CRUD, password lock (argon2id), expiry sweeper, soft delete with 7d grace, public list 2026-09-08 16:04:34 -05:00