funcs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Array

func Array(args ...any) []any

Array returns a []any{args[0], args[1], ...}

func CSS

func CSS(a any) (template.CSS, error)

func HTML

func HTML(a any) (template.HTML, error)

func HTMLAttr

func HTMLAttr(a any) (template.HTMLAttr, error)

func JS

func JS(a any) (template.JS, error)

func JSON

func JSON(a any) (template.JS, error)

JSON returns a json marshal string.

func JSStr

func JSStr(a any) (template.JSStr, error)

func Map

func Map(kvs ...any) (map[string]any, error)

Map returns a map[string]any{kvs[0]: kvs[1], kvs[2]: kvs[3], ...}

func Srcset

func Srcset(a any) (template.Srcset, error)

func Strings added in v1.0.11

func Strings(args ...string) []string

Strings returns a []string{args[0], args[1], ...}

func URL

func URL(a any) (template.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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