当前位置:网站首页>Fluent uses protobuf
Fluent uses protobuf
2022-07-26 08:27:00 【Peanut - Summer】
1, What I'm using here is https://github.com/yangyanzhan/protobuf
2,clone Come down ,
3, And then in protoc_plugin Under the directory of brew install protobuf If appear Updating Homebrew... direct control + C Just skip
4, And then in protoc_plugin Under the directory of brew tap dart-lang/dart and brew install dart If appear Updating Homebrew... direct control + C Just skip
5, Configuration environment : open ~/.zshrc
export PATH=$PATH:/Users/apple/Desktop/ Work /protobuf/protobuf-master/protoc_plugin/bin
To bin Catalog
6, Execute anywhere pub see pub Whether to install
7, To configure proto file :FeedBackResponse.proto The content of
syntax = "proto3"; //proto Analytic transformation json use
message GetFeedbackResponse {
message ReasonIndex{
repeated uint32 reason_index = 1; // reason Of index
}
uint32 star = 1; // Number of stars
repeated ReasonIndex reason = 2; // Each star
string tip = 3; // ***,
repeated string star_name = 4;
repeated string reason_name = 5; // All reasons set
}
8, Execute anywhere protoc --dart_out=/Users/apple/Desktop/ Work /protobuf/proto_dart --proto_path=/Users/apple/Desktop /Users/apple/Desktop/FeedBackResponse.proto
The first is to configure the output path , The second is configuration proto Path to file , The third is configuration proto The full path of the file
After execution, the converted dart file .
边栏推荐
- 第四天作业
- Burp suite Chapter 5 how to use burp target
- 2022/7/11 exam summary
- BGP选路原则
- Storage of drawings (refined version)
- 【时间复杂度空间复杂度】
- 2022年全国职业院校技能大赛“网络安全”竞赛试题文件上传渗透测试答案Flag
- Condition judgment function of MySQL function summary
- 22-07-12 personal training match 1 competition experience
- Apple's tough new rule: third-party payment also requires a percentage, and developers lose a lot!
猜你喜欢

日常一记(11)--word公式输入任意矩阵

Nodejs2day (modularization of nodejs, NPM download package, module loading mechanism)

How to safely delete a useless activity in Android studio

Kotlin operator

外卖小哥,才是这个社会最大的托底

vscode 实用快捷键

Recurrence of strtus2 historical vulnerability

Special lecture 2 dynamic planning learning experience (should be updated for a long time)

Kotlin data type

Brief introduction to XML
随机推荐
es6中函数默认参数、箭头函数、剩余参数-讲解
2022/7/6 exam summary
Basic introduction of JDBC
Use of room database in kotlin
Guitar staff link Jasmine
memorandum...
2022/7/12 exam summary
[June 29, 2022] examination summary
Exam summary on June 27, 2022
Uninstallation of dual systems
OSPF summary
Sed job
sed作业
2022/7/1
美女裸聊一时爽,裸聊结束火葬场!
Beauty naked chat for a while, naked chat over the crematorium!
Dev gridcontrol captures key events
R language foundation
This is a picture
Matplotlib learning notes