- 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
24 lines
662 B
AMPL
24 lines
662 B
AMPL
module palette
|
|
|
|
go 1.27.1
|
|
|
|
require (
|
|
github.com/go-chi/chi/v5 v5.3.2
|
|
github.com/go-enry/go-enry/v2 v2.9.6
|
|
golang.org/x/crypto v0.39.0
|
|
modernc.org/sqlite v1.58.0
|
|
)
|
|
|
|
require (
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/go-enry/go-oniguruma v1.2.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.24 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
modernc.org/libc v1.75.6 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.12.1 // indirect
|
|
)
|