abadojack / whatlanggo

Natural language detection library for Go
MIT License
637 stars 64 forks source link

Required minimum version? #4

Closed peterbe closed 7 years ago

peterbe commented 7 years ago

I tried to build this on 1.6.2 and got this error:

$ go get -u github.com/abadojack/whatlanggo
# github.com/abadojack/whatlanggo
gocode/src/github.com/abadojack/whatlanggo/detect.go:120: undefined: sort.SliceStable
gocode/src/github.com/abadojack/whatlanggo/trigrams.go:31: undefined: sort.SliceStable

$ go version
go version go1.6.2 linux/amd64
nathj07 commented 7 years ago

I believe you need go 1.8 for this. See issue #2.

abadojack commented 7 years ago

Like he 👆🏿 said, update to go version go1.8 linux/amd64.