Comments (7)
- 不是很懂说的什么意思
- 不支持二维数组, 也没有支持计划
- 请具体说明
from tabtoy.
1.现在的config.cs文件的生成是用printer/csharp.go 来生成的,期望可以用一个类似json文件来自定义一些东西。比如在public partial class 前面加上 [System.Serializable]。
我现在改源码生成自定义数据类是这种格式
[System.Serializable]
public partial class WeightInt
{
/// < summary >
///值
/// < /summary >
public int value = 1;// i
/// < summary >
///权重
/// < /summary >
public int weight = 100;// w
}
2.二维数组不支持的话,现在我用json替代了,比如分隔符是| 写成 [1,2]|[3,4]
3.注释的那一行如果有换行符的话生成的注释有问题。比如
1.注释1
2.注释2
生成的config.cs 里面
//1.注释1
2. 注释2
3 我改了一下printer/csharp.go 最主要的修改其中的Comment方法
func (self csharpField) Comment() string {
if self.FieldDescriptor.Comment == "" {
return ""
}
return "/// <summary> \n ///" + strings.Replace(self.FieldDescriptor.Comment, "\n", "\n ///", -1) +"\n /// </summary>"
}
from tabtoy.
Excel忽略行现在支持了没有?没有的话稍微有点不方便。
from tabtoy.
忽略行特性暂时不添加, 因为有内容歧义
from tabtoy.
已经添加C#类头添加属性
from tabtoy.
你可以在使用空行作为内容分割, 空行后的内容不会被导出
from tabtoy.
不错不错,赞。
from tabtoy.
Related Issues (20)
- 存在多张 KV 表时 C# 导出格式错误 HOT 1
- v2版本对象中的字段是否可以是数组? HOT 3
- 可以支持同一个excel中多个sheet吗 HOT 3
- 导出.proto描述文件时,能否将表头的标识名也注释在字段后面 HOT 1
- TT201 错误,“value碰到字符串时, 需要用双引号括起来”,还是会报错 HOT 2
- V2版本编译linux 的方法 HOT 1
- 直链github使用go get 报错 HOT 4
- 请问支持多主键吗? HOT 1
- 申请数组切割符支持多个字符进行切割 HOT 2
- 使用protobuf方式,生成的代码文件,无法以O(1)或map的方式存取;因为相关的数据结构是数组的
- 数据表中只支持枚举标识名和字段名,是否可以增加对枚举值的支持
- 导出C#数据类,没有实现 Deserialize 方法 HOT 9
- 有办法让数据表里也能声明枚举吗 HOT 4
- v2 ColumnMajor_ColumnValue should is 5 HOT 1
- (C#)导出时将枚举定义中的标识名作为enum的description属性? HOT 1
- 删除数据表里某一列,但是Type表里忘记删对应字段,不会报错,而且还能导出删除列的字段 HOT 1
- go导出文件报错 HOT 3
- 能否提供一个V3结构体的例子 HOT 7
- 生成go文件的bug? HOT 4
- 请问表格中标记列的标记有没有解释? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabtoy.