assets

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpxVersion = "4.1.0"
)

Variables

This section is empty.

Functions

func Assets added in v2.4.1

func Assets() embed.FS

Assets

返回 assets embed.FS 对象

func AssetsPath

func AssetsPath(proj *project.Project, file string) string

AssetsPath 返回配置资源目录

func BuildOutPath

func BuildOutPath(proj *project.Project) string

BuildOutPath 返回固定构建输出目录 $current/build

func ReadFile

func ReadFile(proj *project.Project, assetsFSPath, file string) ([]byte, error)

ReadFile

读取文件,根据项目配置先在本地目录读取,如果读取失败,则在内置资源目录读取

func UpxBytes

func UpxBytes() (fs.File, error)

func WriteFile

func WriteFile(projectData *project.Project, file string, content []byte) error

WriteFile 写文件到本地目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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