Skip to content

Conversation

@thallada
Copy link
Contributor

Source: https://pkg.go.dev/text/template#hdr-Functions

The comparison functions the greater-than-or-equal-to and less-than-or-equal-to are ge and le, not gte and lte. I got an error rendering my template before I realized this.

Source: https://pkg.go.dev/text/template#hdr-Functions

The comparison functions the greater-than-or-equal-to and less-than-or-equal-to are `ge` and `le`, not `gte` and `lte`. I got an error rendering my template before I realized this.
Copy link
Member

@svilenmarkov svilenmarkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, sorry about that!

@svilenmarkov svilenmarkov merged commit 9e50235 into glanceapp:main May 22, 2025
Zykairotis pushed a commit to Zykairotis/glanceXags that referenced this pull request Jan 8, 2026
Correct docs for Go's `text/html` built-in template functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants