dayvonjersen / linguist

Detect programming language used in git repository. Go port of github linguist.
Apache License 2.0
72 stars 9 forks source link

Linguist isn't thread safe #12

Open ianlewis opened 1 year ago

ianlewis commented 1 year ago

Currently you can't call LanguageByContents (and I believe other functions as well) from multiple goroutines.

Will add the exact error encountered later.

ianlewis commented 1 year ago

Probably it's not necessary to be able to be used by multiple goroutines. It could just be documented in the godoc.