From e3f93e254bf40405a44843f39ad38c59e1981587 Mon Sep 17 00:00:00 2001 From: JianFeeeee Date: Wed, 26 Aug 2026 17:05:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(recoverydiag):=20=E8=A1=A5=E9=BD=90=20go.?= =?UTF-8?q?mod=20=E4=B8=8E=20main.go=EF=BC=88=E4=B8=8E=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=BB=93=E6=9E=84=E4=B8=80=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/recoverydiag/go.mod | 7 +++++++ example/recoverydiag/main.go | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 example/recoverydiag/go.mod create mode 100644 example/recoverydiag/main.go diff --git a/example/recoverydiag/go.mod b/example/recoverydiag/go.mod new file mode 100644 index 0000000..f1fc4ca --- /dev/null +++ b/example/recoverydiag/go.mod @@ -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 => ../../ \ No newline at end of file diff --git a/example/recoverydiag/main.go b/example/recoverydiag/main.go new file mode 100644 index 0000000..67c3a3c --- /dev/null +++ b/example/recoverydiag/main.go @@ -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) +}