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

map[string][]string is converted to map<string, string> #106

Open
t0k4rt opened this issue Jan 4, 2019 · 0 comments
Open

map[string][]string is converted to map<string, string> #106

t0k4rt opened this issue Jan 4, 2019 · 0 comments

Comments

@t0k4rt
Copy link

t0k4rt commented Jan 4, 2019

Hello,
I've got an issue with theb generated protobuf.
My function signature is
FindApp(ctx context.Context, criteria map[string][]string) ([]App, error)

The generated rpc parameter is

message appservice_FindAppRequest {
	map<string, string> arg1 = 1;
}

Is it normal ?
I tried to convert map[string][]string to a proper type like that:

type CriteriaList []string
type SearchCriteria map[string]CriteriaList

But the generated code is still the same.
I think it ois a bug but I'm not sure.
Thanks a lot for your help !

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