blog-service icon indicating copy to clipboard operation
blog-service copied to clipboard

2.5 为接口做参数校验 这一章 出现了 imported from implicitly required module

Open JwCodeX opened this issue 4 years ago • 1 comments

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` image

JwCodeX avatar Aug 03 '21 23:08 JwCodeX

改成 go 1.14版本可以运行

JwCodeX avatar Aug 03 '21 23:08 JwCodeX