From 7b7d6fc656f5b89054fe20302d3c73f955442245 Mon Sep 17 00:00:00 2001 From: Oleksandr Kushchenko Date: Tue, 20 Feb 2018 16:06:17 +0200 Subject: [PATCH] Add docs for atoi template function --- docs/templates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/templates.md b/docs/templates.md index 9643074fb..c74f09ddc 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -356,6 +356,14 @@ Wrapper for [net.LookupIP](https://golang.org/pkg/net/#LookupIP) function. The w {{end}} ``` +### atoi + +Alias for the [strconv.Atoi](https://golang.org/pkg/strconv/#Atoi) function. + +``` +{{seq 1 (atoi (getv "/count"))}} +``` + ## Example Usage ```Bash