rivo / uniseg

Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
MIT License
570 stars 60 forks source link

go get with error #29

Closed ywzhou123 closed 12 months ago

ywzhou123 commented 1 year ago

[root@VM-4-7-centos width]# go version go version go1.17.12 linux/amd64

[root@VM-4-7-centos width]# go get github.com/rivo/uniseg

github.com/rivo/uniseg

/root/go/src/github.com/rivo/uniseg/properties.go:137:6: missing function body /root/go/src/github.com/rivo/uniseg/properties.go:137:20: syntax error: unexpected [, expecting (

rivo commented 1 year ago

uniseg requires at least Go v1.18:

https://github.com/rivo/uniseg/blob/master/go.mod