mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-16 12:15:20 +00:00
Mention Go variable naming rules
This commit is contained in:
1 parent
11ce3a59c2
commit
9829e28626
1 file changed
+3
@@ -114,6 +114,8 @@ all other pages:
|
|||||||
Var is {{ $var }}
|
Var is {{ $var }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Variable names must conform to Go's naming rules for [identifiers][identifier].
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
|
Go Templates only ship with a few basic functions but also provide a mechanism for applications to extend the original set.
|
||||||
@@ -660,6 +662,7 @@ If you restrict front matter to the TOML format, and omit quotation marks surrou
|
|||||||
[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
|
[dotdoc]: https://golang.org/pkg/text/template/#hdr-Variables
|
||||||
[front matter]: /content-management/front-matter
|
[front matter]: /content-management/front-matter
|
||||||
[functions]: /functions
|
[functions]: /functions
|
||||||
|
[identifier]: /getting-started/glossary/#identifier
|
||||||
[internal templates]: /templates/internal
|
[internal templates]: /templates/internal
|
||||||
[math]: /functions/math
|
[math]: /functions/math
|
||||||
[pagevars]: /variables/page
|
[pagevars]: /variables/page
|
||||||
|
|||||||
Reference in new issue
Block a user