Add concat example

This commit is contained in:
gfanton 2017-01-17 16:07:38 +01:00
parent 99d310ac79
commit fee245f5d4
8 changed files with 25 additions and 0 deletions

13
examples/concat/Makefile Normal file
View File

@ -0,0 +1,13 @@
.PHONY: build
build:
mkdir -p output
protoc -I. --gotemplate_out=template_dir=templates,debug=true,all=true:output proto/*.proto
.PHONY: re
re: clean build
.PHONY: clean
clean:
rm -rf output

View File

@ -0,0 +1,3 @@
I'm Eric
I'm Francis
I'm Arnold

View File

@ -0,0 +1 @@
This is static text.This is static text.This is static text.

View File

@ -0,0 +1,2 @@
syntax = "proto3";
package Eric;

View File

@ -0,0 +1,2 @@
syntax = "proto3";
package Francis;

View File

@ -0,0 +1,2 @@
syntax = "proto3";
package Arnold;

View File

@ -0,0 +1 @@
I'm {{.File.Package}}

View File

@ -0,0 +1 @@
This is static text.