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

Fails when type map[string]string is in proto message #85

Open
michael-the-grey opened this issue Nov 26, 2018 · 0 comments
Open

Fails when type map[string]string is in proto message #85

michael-the-grey opened this issue Nov 26, 2018 · 0 comments

Comments

@michael-the-grey
Copy link
Contributor

Error message

cannot use req.Metadata (type map[string]string) as type proto.Message in argument to proto.Marshal:
        map[string]string does not implement proto.Message (missing ProtoMessage method)

Persist Code

	{
		raw, err := proto.Marshal(req.Metadata)
		if err != nil {
			return nil, err
		}
		params.Metadata = raw
	}

Proto Field

  map<string, string> metadata = 11;
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

1 participant