## 事象
`go get`でインストールしたコマンド名が解決しない。
```console
go get github.com/deepmap/oapi-codegen/cmd/oapi-codegen
```
## 原因
[[Go1.18からgo getはパッケージのビルドやインストールをしなくなった]]から。
## 対策
`go install`コマンドを使う。
```console
go install github.com/deepmap/oapi-codegen/cmd/
[email protected]
```
> [!caution]
> `@`でバージョンを指定しないとインストールできない。