mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 18:44:56 -04:00
Update definition of falsy to include zero time.Time values
This commit is contained in:
parent
b0e5ab0514
commit
c3350f4cfd
@ -2,4 +2,6 @@
|
||||
# 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.
|
||||
The falsy values are `false`, `0`, any `nil` pointer or interface value, any array, slice, map, or string of length zero, and zero `time.Time` values.
|
||||
|
||||
Everything else is truthy.
|
||||
|
Loading…
x
Reference in New Issue
Block a user