Skip to content

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

@michael-the-grey

Description

@michael-the-grey

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions