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