Skip to content

conjs/excel_to_json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

excel转json

支持服务器端和客户端

服务器端:生成的是标准JSON

客户端:生成的是阉割版的,表头+数据的方式

演示图


config.json
{
  "data":[
    {
      "name":"内网165",
      "inPath":"C:/Users/Administrator/Desktop/new_svn/shuzhi/数据表/",
      "serverOutPath":"C:/Users/Administrator/Desktop/new_svn/a/out1/s/",
      "clientOutPath":"C:/Users/Administrator/Desktop/new_svn/a/out1/c/",
      "structPath":"C:/Users/Administrator/Downloads/1/ttttt/u/",
      "clientZip":1
    }
  ,
    {
      "name":"公网181",
      "inPath":"C:/Users/Administrator/Desktop/new_svn/shuzhi/数据表/",
      "serverOutPath":"C:/Users/Administrator/Desktop/new_svn/a/out2/s/",
      "clientOutPath":"C:/Users/Administrator/Desktop/new_svn/a/out2/c/",
      "structPath":"C:/Users/Administrator/Downloads/1/ttttt/u/",
      "serverZip":0
    }
  ]
}

name:平台标志
inPath:excel目录
serverOutPath:服务器端生成json路径
[clientOutPath]:客户端生成json路径
[structPath]:结构体输出路径
[clientZip]:客户端是否打个ZIP包,1打包,0不打包. 此配置可选,删除此配置默认为不打包
[serverZip]:服务器是否打包,同上

其中,clientOutPath,structPath,clientZip,serverZip 都是选填。不填则不生成

About

excel file to json by golang version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published