summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/compare/Lt.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/compare/Lt.md')
-rw-r--r--docs/content/en/functions/compare/Lt.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/content/en/functions/compare/Lt.md b/docs/content/en/functions/compare/Lt.md
index 3fe8f1d2c..b306a97b5 100644
--- a/docs/content/en/functions/compare/Lt.md
+++ b/docs/content/en/functions/compare/Lt.md
@@ -30,3 +30,11 @@ aliases: [/functions/lt]
{{ lt 2 1 2 }} → false
{{ lt 2 2 1 }} → false
```
+
+Use the `compare.Lt` function to compare other data types as well:
+
+```go-html-template
+{{ lt "ab" "a" }} → false
+{{ lt time.Now (time.AsTime "1964-12-30") }} → false
+{{ lt true false }} → false
+```