blog-service
blog-service copied to clipboard
2.5 为接口做参数校验 这一章 出现了 imported from implicitly required module
win10系统 go 1.16 复制文章源码或当前目录下源码到系统报错
`go: blog-service/pkg/app: package github.com/go-playground/universal-translator imported from implicitly required module; to add missing requirements, run: go get github.com/go-playground/[email protected] go: blog-service/internal/middleware: package github.com/go-playground/locales/en imported from implicitly required module; to add missing requirements, run: go get github.com/go-playground/locales/[email protected] go: blog-service/internal/middleware: package github.com/go-playground/locales/zh imported from implicitly required module; to add missing requirements, run: go get github.com/go-playground/locales/[email protected] go: blog-service/internal/middleware: package github.com/go-playground/locales/zh_Hant_TW imported from implicitly required module; to add missing requirements, run: go get github.com/go-playground/locales/[email protected] go: blog-service/internal/middleware: package github.com/go-playground/universal-translator imported from implicitly required module; to add missing requirements, run: go get github.com/go-playground/[email protected]
Compilation finished with exit code 1`

改成 go 1.14版本可以运行