✏️ dep: use RomiChan/protobuf

This commit is contained in:
fumiama
2021-12-03 13:36:43 +08:00
parent 35587ccb85
commit fcf6d087a7
20 changed files with 56 additions and 4048 deletions

View File

@@ -6,6 +6,8 @@ import (
"fmt"
"os"
"github.com/RomiChan/protobuf/proto"
"github.com/FloatTech/ZeroBot-Plugin/plugin_diana/data"
)
@@ -36,7 +38,7 @@ func main() {
panic(err)
}
data, _ := compo.Marshal()
data, _ := proto.Marshal(&compo)
f, err1 := os.OpenFile(os.Args[2], os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0644)
if err1 == nil {
defer f.Close()