This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git


The following commit(s) were added to refs/heads/main by this push:
     new d8fe4eb  feat(embed-basic): add components build embed
d8fe4eb is described below

commit d8fe4eb9760b6595d5c4e926c32ba061cadb4962
Author: LinkinStars <[email protected]>
AuthorDate: Tue Jun 11 12:00:52 2024 +0800

    feat(embed-basic): add components build embed
---
 embed-basic/basic.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/embed-basic/basic.go b/embed-basic/basic.go
index 3abfebb..5c48dab 100644
--- a/embed-basic/basic.go
+++ b/embed-basic/basic.go
@@ -20,11 +20,15 @@
 package embed_basic
 
 import (
+       "embed"
        "encoding/json"
        "github.com/apache/incubator-answer-plugins/embed-basic/i18n"
        "github.com/apache/incubator-answer/plugin"
 )
 
+//go:embed components
+var Build embed.FS
+
 type Embed struct {
        Config *EmbedConfig
 }

Reply via email to