We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to migrate to orderedmap. I am getting an error that says
invalid operation: cannot index orderedmap.NewOrderedMap (value of type func() *"github.com/elliotchance/orderedmap".OrderedMap)
newDeps := pkg.Dependencies{ Deps: orderedmap.NewOrderedMap[string, pkg.Dependency](), }
My Dependencies looks like:
type Dependencies struct { Deps *orderedmap.OrderedMap[string, Dependency] `json:"packages" toml:"dependencies,omitempty"` }
The text was updated successfully, but these errors were encountered:
OrderedMap cannot be serialized (ie json encoded) you will need to handle that encoding/decoding yourself
Sorry, something went wrong.
I removed the json:"packages" toml:"dependencies,omitempty" but I am still getting the same error:
json:"packages" toml:"dependencies,omitempty"
I did a quick google search and I don't think that's even a Go error, perhaps it's a custom linter or something?
No branches or pull requests
I am trying to migrate to orderedmap. I am getting an error that says
My Dependencies looks like:
The text was updated successfully, but these errors were encountered: