Giter Site home page Giter Site logo

hiexcel2protobuf's Introduction

HiExcel2Protobuf(Excel转Protobuf工具)

修改([email protected]

  • Excel格式改变,请参照项目中Item.xlsx样例

功能说明

  • 将Excel文件生成protobuf文件和protobuf数据
  • 目前支持生成五种语言C++(生成.cpp),C#(生成.cs和.dll),Golang(生成.go),Java(生成.java),Python(生成.py)

如何使用

VVbONwkevi

从此处下载: https://github.com/hiramtan/HiProtobuf/releases

  1. 选择导出文件的存放目录
  2. 选择Excel文件的存放目录
  3. 选择编译器csc.exe
  4. 点击导出

类型对应关系

EXCEL_5u9BDIL5mX

详细说明

  • 大多数Windows电脑上默认安装.Net Framework,编译器路径一般在C:\Windows\Microsoft.NET\Framework64.如果没有安装从此处下载安装 https://dotnet.microsoft.com/download/dotnet-framework

  • 如果希望导出.go文件,需要额外做一些操作,具体参照官方介绍: https://developers.google.cn/protocol-buffers/docs/gotutorial

  • C#语言额外导出了一份.dll,可以使用.cs源码或者.dll文件

  • 会递归遍历Excel目录下的所有文件

  • 会在导出目录下自动生成三个目录:

    • proto 存放.proto原始文件
    • language 存放各语言的生成文件(比如language/cpp/xx.cpp)
    • dat 存放.dat protobuf序列化数据
  • 支持的数据类型有: "double", "float", "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64","sfixed32", "sfixed64", "bool", "string", "bytes"

  • 支持对应的数组类型,数据分割用|

    qAn9ZhK3fO

    icZblwSnCx

  • 运行时使用如下:

    7U7wQbS0FP

  • 扩展:源码里面的对象很容易生成其他语言(Lua/Ruby/PHP...)和数据(Json/Xml/Bin...)


Support: [email protected]

hiexcel2protobuf's People

Contributors

hiram3512 avatar zfano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.