str

package
v0.0.0-...-074ee30 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqFold

func EqFold(str string, targets ...string) bool

func HtmlTemplateExpand

func HtmlTemplateExpand(td *TemplateDesc, writer io.Writer) error

func RemoveSpaces

func RemoveSpaces(str string) string

func SimpleTemplateExpand

func SimpleTemplateExpand(td *TemplateDesc) (string, error)

func TextTemplateExpand

func TextTemplateExpand(td *TemplateDesc, writer io.Writer) error

Types

type TemplateDesc

type TemplateDesc struct {
	Template string
	Data     map[string]interface{}
	Funcs    map[string]any
	Html     bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳