You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1 Encountered same error when trying to go get gorm.io/gorm (which uses this package)
$ go get gorm.io/gorm
# github.com/jinzhu/inflection
../../jinzhu/inflection/inflections.go:123:24: syntax error: unexpected newline in composite literal; possibly missing comma or }
$ go version
go version go1.20.1 darwin/arm64
A little digging showed that this error was introduced in PR #27
Workaround: use go mod
$ cd your_project
$ go mod init # if not already initialised
$ go get gorm.io/gorm
go: downloading gorm.io/gorm v1.25.5
go: added github.com/jinzhu/inflection v1.0.0
go: added github.com/jinzhu/now v1.1.5
go: added gorm.io/gorm v1.25.5
Greetings.
CGO_ENABLED=0 go build -tags=jsoniter -o binary .
/go/src/github.com/jinzhu/inflection/inflections.go:123:24: syntax error: unexpected newline in composite literal; possibly missing comma or }
docker image version: golang:1.18, golang:1.19
Thanks.
The text was updated successfully, but these errors were encountered: