assets

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Images embed.FS
View Source
var ImagesFS fs.FS
View Source
var Script embed.FS
View Source
var ScriptFS fs.FS

Functions

func GetCSS

func GetCSS(oneFileMode bool) (cssString string)

GetCSS 在页面中插入需要的css代码

func GetData

func GetData(filePath string) []byte

GetData 从Static获取字节切片形式的数据

func GetFileStr

func GetFileStr(filePath string) string

GetFileStr 从Static获取字符串形式的脚本

func GetImageData added in v1.2.0

func GetImageData(imageName string) []byte

GetImageData 从Images embed.FS获取图片字节数据

func GetImageSrc

func GetImageSrc(filePath string) string

GetImageSrc 从Static获取Base64编码的图片的src属性

func GetJavaScript

func GetJavaScript(oneFileMode bool, insertScript []string) (jsString string)

GetJavaScript 在页面中插入需要的js代码

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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