nlpt_detect
Uses a go wrapper around the cld2 project, which is a c++ Naïve Bayesian classifier open-sourced by Google Chrome team. It "probabilistically detects over 80 languages in Unicode UTF-8 text, either plain text or HTML/XML."
Get it
go get github.com/jbowles/cld2_nlpt
Use it
english := "This is an english sentence"
got := Detect(english, "name", len(english), 3, 3, 3)
So far there are only 5 functions that employ only 3 different ways to use CLD2.
Dependencies
The go wrapper: cld2_nlpt, which is itself dependent on cld2 itself.
nlpt
natural language processing toolkit