lib

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathAMD64Cocoa    = "darwin/libenergy-amd64.zip"
	PathARM64Cocoa    = "darwin/libenergy-arm64.zip"
	PathAMD64Gtk2     = "linux/libenergy-amd64-gtk2.zip"
	PathAMD64Gtk3     = "linux/libenergy-amd64-gtk3.zip"
	PathARMGtk2       = "linux/libenergy-armhf-gtk2.zip"
	PathARMGtk3       = "linux/libenergy-armhf-gtk3.zip"
	PathARM64Gtk2     = "linux/libenergy-arm64-gtk2.zip"
	PathARM64Gtk3     = "linux/libenergy-arm64-gtk3.zip"
	Path386Gtk2       = "linux/libenergy-386-gtk2.zip"
	Path386Gtk3       = "linux/libenergy-386-gtk3.zip"
	PathLoong64Gtk2   = "linux/libenergy-loong64-gtk2.zip"
	PathLoong64Gtk3   = "linux/libenergy-loong64-gtk3.zip"
	PathAMD64Win32    = "windows/libenergy-amd64.zip"
	Path386Win32      = "windows/libenergy-386.zip"
	PathWV2AMD64Win32 = "windows/WebView2Loader-amd64.zip"
	PathWV2386Win32   = "windows/WebView2Loader-386.zip"
	PathWV2Setup      = "windows/MicrosoftEdgeWebview2Setup.zip"
)
View Source
const DarwinUniversalBinaryName = "libenergy-universal.dylib"

Variables

This section is empty.

Functions

func Add added in v1.0.1

func Add(fs *EmbedFS)

func DefaultLibName

func DefaultLibName(filename string) bool

func ExtractLibrary

func ExtractLibrary(outputPath string) (libPath string)

ExtractLibrary 从内置资源中提取库文件到指定输出路径

  • outputPath: 库文件的输出目录路径
  • libPath: 提取后的库文件完整路径

func GOARCH added in v1.0.1

func GOARCH() (goarch string)

func GOOS added in v1.0.1

func GOOS() (goos string)

func GetDLLName added in v1.0.1

func GetDLLName() string

GetDLLName 用于获取当前系统架构的 lib 库

func Libs

func Libs() *tool.HashMap[string, *EmbedFS]

Types

type EmbedFS

type EmbedFS struct {
	Path           string
	Lib            *embed.FS
	OutputFilename string
	NotReleased    bool
}

func (*EmbedFS) Release added in v1.0.1

func (m *EmbedFS) Release(outputPath string, files ...string) error

Directories

Path Synopsis
darwin
universalbinary command

Jump to

Keyboard shortcuts

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