chore(recoverydiag): 补齐 go.mod 与 main.go(与其他插件结构一致)

This commit is contained in:
JianFeeeee
2026-08-26 17:05:24 +08:00
parent d57c5eaf3e
commit e3f93e254b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module recoverydiag
go 1.25.0
require gitcode.com/JianFeeeee/homeagent-sdk v0.0.0
replace gitcode.com/JianFeeeee/homeagent-sdk => ../../

View File

@ -0,0 +1,11 @@
//go:build !windows || !cgo
package main
import (
sdk "gitcode.com/JianFeeeee/homeagent-sdk/sdk"
)
func NewPlugin(name string, config map[string]interface{}) (sdk.Plugin, error) {
return NewPluginFactory(name, config)
}