protoc-gen-go-micro/examples/arithmetics/templates/arithmetics.tmpl

6 lines
173 B
Cheetah
Raw Normal View History

2018-03-21 16:41:40 +03:00
{{with $a := 1}}{{with $b := 2}}
add(1,2) = {{add $a $b}}
subtract(1,2) = {{subtract $a $b}}
multiply(1,2) = {{multiply $a $b}}
divide(2,1) = {{divide $b $a}}
{{end}}{{end}}