Rename Substr to Slice
authorbep <bjorn.erik.pedersen@gmail.com>
Mon, 23 Mar 2015 11:18:34 +0000 (12:18 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Mon, 23 Mar 2015 11:18:27 +0000 (12:18 +0100)
commitbe19f4eb91be594d4bcb5d7fde37be20835d294a
tree099d8b5a9b5a080efe45034a2b38c7d0f361b7ee
parentbe4fe8f8afb09e8fd0d50f000d52619d3824516d
Rename Substr to Slice

That is whas was implemented, not Substr.

Also make the API more similar to Go's internal slice by making both the start and end indices optional.

See #990
tpl/template.go
tpl/template_test.go