Documentation
¶
Index ¶
- Variables
- func FileExists(filename string) bool
- func FindResource(levelName, base, arch, ext string) ([]byte, error)
- func GetFileContent(filename string) ([]byte, error)
- func GetLevelEntryFile(levelName, entryFile string) ([]byte, error)
- func GetLevelManifest(levelName string) ([]byte, error)
- func GetLevelResource(levelName, resourceName string) ([]byte, error)
- func GetResourcePath(levelName, filename string) string
- func ListLevels() ([]string, error)
- func ParseEmbedPath(embedPath string) (levelName, filePath string, err error)
- func ReadDir(dirname string) ([]fs.DirEntry, error)
- func ReadEmbedResource(embedPath string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var UnifiedFS embed.FS
Functions ¶
func FindResource ¶
FindResource 查找嵌入式资源文件,支持架构特定查找
func GetLevelEntryFile ¶
GetLevelEntryFile 获取指定级别的入口文件内容
func GetLevelManifest ¶
GetLevelManifest 获取指定级别的manifest文件内容
func GetLevelResource ¶
GetLevelResource 获取指定级别的资源文件内容
func GetResourcePath ¶
GetResourcePath 获取嵌入式资源的embed://路径格式
func ListLevels ¶
ListLevels 列出所有可用的级别(community, professional, custom)
func ParseEmbedPath ¶
ParseEmbedPath 解析embed://路径,返回level和文件路径
func ReadEmbedResource ¶
ReadEmbedResource 根据embed://路径读取嵌入式资源
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.