gqlgen command does not work with go gqlgen

Event

--I was using gqlgen to implement GraphQL with go

Occurrence condition

--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

Workaround

-- $ 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)

Finally

--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

gqlgen command does not work with go gqlgen
After installing php7.2, the php command does not work
When wildcard specification does not work with pylint
Command when ACPI shutdown does not work in VirtualBox
Day 65 (Solution) Jupyter notebook does not work with Kernel Not Conected.
LocateCenterOnScreen does not work on PyAutoGui
Using cgo with the go command
Virtualenv does not work on Python3.5 (Windows)
SciPy version does not go up (Mac)
(Under investigation) USB camera that does not work with WebRTC on RPi4
Python with Go
Jinja2 2.9.6 does not work on Lambda Python 3 series
[Python] Expression (1,2) does not make tuples with parentheses
[systemd] How to deal with the problem that fancontrol does not work after suspending
Note ((1) csv.reader AttributeError, (2) get_sheet_by_name DeprecationWarning, (3) .delete_cols does not work)
Check when the version does not switch with pyenv
A story about go get but stumbling immediately after being assigned with command not found
Command not found with sudo rosdep init in ROS setup