Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import problem (Validator V10 / Go 1.22 / VS Code) #1229

Open
2 tasks done
emirefek opened this issue Feb 12, 2024 · 1 comment
Open
2 tasks done

Import problem (Validator V10 / Go 1.22 / VS Code) #1229

emirefek opened this issue Feb 12, 2024 · 1 comment

Comments

@emirefek
Copy link

  • I have looked at the documentation here first?
  • I have looked at the examples provided that may showcase my question here?

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Cannot import V10 with VSCode uses official GOLang plugin.

Code sample, to showcase or reproduce:

PS C:\Users\emirefek\Desktop\go-mailer\dto> go get github.com/go-playground/validator/v10
go: added github.com/gabriel-vasile/mimetype v1.4.3
go: added github.com/go-playground/locales v0.14.1
go: added github.com/go-playground/universal-translator v0.18.1
go: added github.com/go-playground/validator/v10 v10.18.0
go: added github.com/leodido/go-urn v1.4.0
package dto

import "github.com/go-playground/validator/v10"

type SomePayload struct {
	Title   string
	Content string
}

func (payload SomePayload) Validate() error {

}
image image
@deankarn
Copy link
Contributor

@emirefek I would file a bug with the official Golang plugin and/or VSCode.

I haven't used VSCode for a few years now but know for a fact it shouldn't be an issue with validator itself as I import the latest version in several projects that use Go 1.22 without issue.

from the information provided I also cannot see any reason why it's complaining in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants