frameworks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

README

框架内嵌包

存放源码及二进制库

目录结构

备注: 压缩包 xxx.zip 源码库直接包含源码, 没有 lcl, cef, wv 目录

frameworks  包
└── cef
    └── cef.zip             CEF 源码库
└── lcl
    └── lcl.zip             LCL 源码库
└── wv
    └── darwin
        └── wv.zip          MacOS WebView 源码库
    └── linux
        └── wv.zip          Linux WebView 源码库
    └── windows
        └── wv.zip          Windows WebView 源码库
└── lib
    └── darwin
        └── libenergy.zip   libenergy.dylib   动态链接库
            └── x86_64 | ARM64                架构
            └── LCL | LCL+CEF | LCL+WebView   三个运行时库
    └── linux
        └── libenergy.zip   libenergy.so      动态链接库
            └── x86_64 | ARM64                架构
            └── LCL | LCL+CEF | LCL+WebView   三个运行时库
    └── windows
        └── libenergy.zip   libenergy.dll     动态链接库 
            └── x86_64 | i386                 架构
            └── LCL | LCL+CEF | LCL+WebView   三个运行时库
    

Documentation

Index

Constants

View Source
const (
	EnableLCL    = true
	EnableCEF    = true
	EnableWV     = true
	EnableENERGY = true
)

启用的模块依赖配置

Variables

This section is empty.

Functions

func CEF

func CEF(targetFileName string) (data []byte, err error)

CEF 从嵌入的 cef.zip 文件中读取指定文件的内容

targetFileName - 要读取的目标文件名

func ENERGY

func ENERGY(targetFileName string) (data []byte, err error)

ENERGY 从嵌入的energy.zip文件中读取指定文件的内容

targetFileName - 要读取的目标文件名

func ExtractCEF

func ExtractCEF(enable bool, fn func(message string))

ExtractCEF 根据enable参数决定是否执行 CEF 库提取操作

func ExtractENERGY

func ExtractENERGY(enable bool, fn func(message string))

ExtractENERGY 根据enable参数决定是否执行 energy 库提取操作

func ExtractFrameworks

func ExtractFrameworks(fn func(message string), ok func())

ExtractFrameworks 提取所有启用的框架 该函数会根据启用的标志位,依次提取LCL、CEF和WV框架

func ExtractLCL

func ExtractLCL(enable bool, fn func(message string))

ExtractLCL 根据enable参数决定是否执行 LCL 库提取操作

func ExtractLibrary

func ExtractLibrary() string

ExtractLibrary 解压设计器运行时库 libenergy 这个函数作为解压过程的入口点

func ExtractWV

func ExtractWV(enable bool, fn func(message string))

ExtractWV 根据enable参数决定是否执行 WebView 库提取操作

func LCL

func LCL(targetFileName string) (data []byte, err error)

LCL 从嵌入的lcl.zip文件中读取指定文件的内容

targetFileName - 要读取的目标文件名

func WV

func WV(targetFileName string) (data []byte, err error)

WV 从嵌入的 wv.zip 文件中读取指定文件的内容

targetFileName - 要读取的目标文件名

Types

This section is empty.

Directories

Path Synopsis
lib

Jump to

Keyboard shortcuts

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