protoc-gen-go-micro/examples/arithmetics/templates/arithmetics.tmpl
2018-03-21 15:03:26 +01:00

6 lines
173 B
Cheetah

{{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}}