fix: embed fruit.svg to resolve container initialization failure
Build and Push Docker Image / build (push) Successful in 2m10s
Build and Push Docker Image / build (push) Successful in 2m10s
This commit is contained in:
@@ -23,8 +23,8 @@ func (t *learnNumberTool) Emoji() string { return "🔢" }
|
||||
|
||||
func (t *learnNumberTool) Init() error {
|
||||
fmt.Println("Initializing Learn-Number tool...")
|
||||
// 动态加载匿名对象
|
||||
return data.LoadIcons("pkg/learnnumber/data/fruit.svg")
|
||||
// 从内嵌资源加载匿名对象
|
||||
return data.LoadIconsFromEmbed()
|
||||
}
|
||||
|
||||
func (t *learnNumberTool) RegisterRoutes(r *gin.RouterGroup) {
|
||||
|
||||
Reference in New Issue
Block a user