encoders

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToJSONKey = "toJSON"
	RawKey    = "raw"
)

Keys to be used in templates for the functions in this package.

Variables

This section is empty.

Functions

func New

func New() hctx.Map

New returns a map of the helpers within this package.

func Raw

func Raw(s string) template.HTML

Raw converts a `string` to a `template.HTML`

func ToJSON

func ToJSON(v interface{}) (template.HTML, error)

ToJSON marshals the interface{} and returns it as template.HTML

Types

This section is empty.

Jump to

Keyboard shortcuts

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