In Go templating, the syntax {{ ._______ }} is used to access data passed to the template.

  • data
  • value
  • field
  • variable
The correct option is variable. In Go templating, the {{ .variable }} syntax is used to access data passed to the template. This allows templates to dynamically render content based on the values of variables provided to them during execution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *