如下步骤:

C:\Go 1.17\src\runtime\internal\sys\zversion.go
const TheVersion = `go1.17`
const Goexperiment = ``
File->Settings->GOROOT->选中Go 1.17
File->Settings->Go Modules (vgo)->选择1.17的SDK

参考:

https://www.itfanr.cc/2021/12/06/goland-doesnot-work-after-upgraded-to-go117/

https://segmentfault.com/a/1190000041495428?sort=votes