js

package
v0.48.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LatestParserVersion  = semver.MustParse("1.0.0")
	MinimumParserVersion = semver.MustParse("1.0.0")
)

Functions

func AddPlugin

func AddPlugin(ctx context.Context, code string, name string) error

func LoadPlugins

func LoadPlugins(ctx context.Context, dir string) error

加载指定文件夹下的所有 JS 解析器插件

Types

type ParserMethod

type ParserMethod uint
const (
	ParserMethodCanHandle ParserMethod
	ParserMethodParse
)

type PluginMeta

type PluginMeta struct {
	Name        string `json:"name"`
	Version     string `json:"version"` // [TODO] 分版本解析, 但是我们现在只有 v1 所以先不写
	Description string `json:"description"`
	Author      string `json:"author"`
}

Jump to

Keyboard shortcuts

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