index
:
vim-sonictemplate.git
gh-pages
master
perl_suppoert-utf8-pipe
placeholder
forked from https://github.com/mattn/vim-sonictemplate
User &
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
template
/
go
/
snip-abs.go
blob: 63f75a24e0ae6ce28b8fe984a8fe205ddd182a4f (
plain
)
1
2
3
4
5
6
func
abs
(
v
{{
_input_
:
type
}})
{{
_input_
:
type
}}
{
if
v
<
0
{
return
-
v
}
return
v
}