resources

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates embed.FS

Functions

func ExecuteTemplate

func ExecuteTemplate(path string, data interface{}) (string, error)

ExecuteTemplate 解析并执行模板,返回渲染后的字符串

func GetTemplate

func GetTemplate(path string) ([]byte, error)

GetTemplate 获取模板内容

func MustGetTemplate

func MustGetTemplate(path string) []byte

MustGetTemplate 获取模板内容,失败时 panic

func ParseTemplate

func ParseTemplate(path string) (*template.Template, error)

ParseTemplate 解析模板并返回 *template.Template

Types

This section is empty.

Jump to

Keyboard shortcuts

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