diff options
Diffstat (limited to 'template/go/snip-min-two.go')
-rw-r--r-- | template/go/snip-min-two.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/template/go/snip-min-two.go b/template/go/snip-min-two.go new file mode 100644 index 0000000..29f8d48 --- /dev/null +++ b/template/go/snip-min-two.go @@ -0,0 +1,6 @@ +func min(a, b {{_input_:type}}) {{_input_:type}} { + if a < b { + return a + } + return b +} |