libname

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

README


自定义加载指定位置的libvcl或者liblcl

要自定义加载dll或者so之类的,需要按照go初始包的规则来做。 Go是按文件名排序的,也就是说要创建一个自定义的包,这个包的文件名必须比以下这个包的 github.com/energye/golcl/lcl 的文件名小,要能在main包里排在这个之前

  • 例:
package main

import "yourpackage" // 必须在自动排序后,排在vcl包之前方能生效。
import "github.com/energye/golcl/lcl"

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LibName = ""
)

Functions

func GetDLLName

func GetDLLName() string

func LibPath

func LibPath(dllName string) string

LibPath

	获取 lib 动态库目录
 优先级
	  tempDllDir > 当前目录 > 用户目录 > LCL_HOME > ENERGY_HOME

func SetTempDllDir added in v1.0.3

func SetTempDllDir(dir string)

SetTempDllDir 设置内置dll释放后加载目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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