summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/go-template/_common/truthy-falsy.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/go-template/_common/truthy-falsy.md')
-rw-r--r--docs/content/en/functions/go-template/_common/truthy-falsy.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/en/functions/go-template/_common/truthy-falsy.md b/docs/content/en/functions/go-template/_common/truthy-falsy.md
new file mode 100644
index 000000000..c8fc9e09e
--- /dev/null
+++ b/docs/content/en/functions/go-template/_common/truthy-falsy.md
@@ -0,0 +1,5 @@
+---
+# Do not remove front matter.
+---
+
+In Go templates, the falsy values are `false`, `0`, any nil pointer or interface value, and any array, slice, map, or string of length zero. Everything else is truthy.