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

splitArray | last doesn't work in online demo #145

Open
asad-awadia opened this issue Aug 4, 2019 · 1 comment
Open

splitArray | last doesn't work in online demo #145

asad-awadia opened this issue Aug 4, 2019 · 1 comment

Comments

@asad-awadia
Copy link

http://protoc-gen-gotemplate.m.42.am/

// here request.(*pb.{{.InputType | splitArray "." | last }}) doing this gives

2019/08/04 15:46:10 new encoder: file="example.proto" service="RouteGuide" template-dir="/tmp/pggt313081003"
2019/08/04 15:46:10 new template: "example.output.tmpl"
panic: template: example.output.tmpl:27:53: executing "example.output.tmpl" at <last>: wrong type for value; expected []interface {}; got []string

goroutine 1 [running]:
main.(*GenericTemplateBasedEncoder).Files(0xc420015a40, 0x12, 0xc42005dc00, 0xc420162000)
	/go/src/github.com/moul/protoc-gen-gotemplate/encoder.go:194 +0x4f1
main.main()
	/go/src/github.com/moul/protoc-gen-gotemplate/main.go:130 +0x3e0
--gotemplate_out: protoc-gen-gotemplate: Plugin failed with status code 2.
@asad-awadia
Copy link
Author

@moul

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