最近在使用iris v12启动时报错go log/slog: package log/slog is not in GOROOT,解决的办法就是升级go版本到1.21及以上,官方说明参考:https://go.dev/doc/go1.21#slog
Golang官方下载地址:https://golang.google.cn/dl/
项目中go.mod添加Iris
|
|
使用Iris的代码
|
|
最近在使用iris v12启动时报错go log/slog: package log/slog is not in GOROOT,解决的办法就是升级go版本到1.21及以上,官方说明参考:https://go.dev/doc/go1.21#slog
Golang官方下载地址:https://golang.google.cn/dl/
|
|
|
|