WARNING: undefined behavior - version of Delve is too old for Go version 1.19.0 (maximum supported version 1.18)
解决办法:
升级 Delve 调试器到适配 Go 1.19 的版本。目前(2022 年 1 月)最新版本是 v1.6.0。
对于使用 GoLand IDE 的用户,可以在 File > Settings > Go > Build Tags & Vendoring 中将 Delve 版本设置为 “Latest”, 然后重启 IDE 即可。