--I was using gqlgen to implement GraphQL with go
go run github.com/99designs/gqlgen [args]
written in the README could or could not be executed.--If the version of go written in the go.mod file is 1.12 or less, it will probably work even if you follow the README.
--People with go version 1.13 or higher in the go.mod file will probably get an error if run after go mod vendor
-- $ GOPATH / bin / gqlgen
should probably have been generated at the stage of go get github.com/99designs/gqlgen
--Can be executed with gqlgen [args]
. (The path should be in $ GOPATH / bin
)
--go run [package] is confusing because the place to refer to changes depending on the place to execute (in $ GOPATH or not), the version of go.mod, and whether ./vendor exists. --The go module behaves differently before 1.12 and after 1.13, so it seems better to upgrade the version quickly.
Recommended Posts