utils

package
v0.0.0-...-fc24136 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MAIN_FIEL string = "main.so"

定义一些常量,方便使用和更改

View Source
const PLUG_SUFFIX string = "so"

Variables

This section is empty.

Functions

func GetAllFile

func GetAllFile(pathname string, isFile bool) ([]string, error)

获取到目录下面所有的文件或者文件夹

func GetAllPlug

func GetAllPlug() *mytype.ArrayList

获取到所有的插件

func GetMd5

func GetMd5(str string) string

获取到string类型的md5加密字符串

func GetPlug

func GetPlug(plugPath string) xplug2.XPlug

获取到单独的插件

func GetPlugFun

func GetPlugFun(pluginFile string, funcName string) (plugin.Symbol, error)

func IsDir

func IsDir(path string) (bool, error)

判断一个路径是不是文件夹

func IsPlug

func IsPlug(path string) bool

判断一个路径是否是一个插件文件

func IsPlugMain

func IsPlugMain(path string) bool

判断是否为插件启动文件

func ReadXPlugConfig

func ReadXPlugConfig()

读取插件配置信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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