fibplugin

package
v0.4.22 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

examples/fib_plugin/fibplugin.go 这是一个示例插件,展示如何将 Xxlang 作为第三方库来编写插件

插件提供高性能的斐波那契计算功能,供 Xxlang 代码调用

使用方式:

作为静态插件:在 Go 程序中 import 此包,插件自动注册

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FibPlugin

type FibPlugin struct{}

FibPlugin 实现 plugin.Plugin 接口

func (*FibPlugin) Exports

func (p *FibPlugin) Exports() map[string]objects.Object

Exports 返回插件导出的函数和变量

func (*FibPlugin) Name

func (p *FibPlugin) Name() string

Name 返回插件名称,用于 import "plugin/fib"

Jump to

Keyboard shortcuts

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