Which package in Go provides built-in support for templates?

  • GoHTML
  • GoTemplate
  • html/template
  • text/template
The html/template package in Go provides built-in support for templates. It is specifically designed for generating HTML output and includes features for automatic escaping of HTML, preventing common security vulnerabilities like XSS attacks. This package is commonly used in web applications built with Go.
Add your answer
Loading...

Leave a comment

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