Help us shape the future of Go! Take the 2026 Go Developer Survey

hstring

package
v0.153.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML string

HTML is a string that represents rendered HTML. When printed in templates it will be rendered as template.HTML and considered safe so no need to pipe it into `safeHTML`. This type was introduced as a wasy to prevent a common case of inifinite recursion in the template rendering when the `linkify` option is enabled with a common (wrong) construct like `{{ .Text | .Page.RenderString }}` in a hook template.

func (HTML) PrintableValue

func (s HTML) PrintableValue() any

func (HTML) String

func (s HTML) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL