安装 iris v12版本需要 Golang >= 1.21
go get github.com/kataras/iris/v12@latest
github.com/kataras/iris/v12 imports
github.com/kataras/golog imports
log/slog: package log/slog is not in GOROOT (/usr/local/go/src/log/slog)
参考链接:https://go.dev/doc/go1.21#slog
标签:iris,log,v12,slog,go,kataras From: https://blog.51cto.com/jinliang/9491883