# excel_to_csv **Repository Path**: lichenxin/excel_to_csv ## Basic Information - **Project Name**: excel_to_csv - **Description**: excel 转换到 csv文件 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2018-06-07 - **Last Updated**: 2023-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # excel_to_csv #### 项目介绍 excel 转换到 csv文件, 主要用与项目数据配置文件的转换处理 #### 编译 ``` windows: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/excel_to_csv.exe -ldflags "-s -w" linux: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/excel_to_csv -ldflags "-s -w" 加上 -ldflags "-s -w" 压缩体积 ``` #### 使用说明 1. --help 说明 2. -file excel 文件地址, 支持相对路径和绝对路径 3. -out CSV输出目录, 支持相对路径和绝对路径 4. excel 里面的工作表名称必须是 a=a.csv 非这种格式的会被过滤不处理 ``` windows: ./excel_to_csv.exe -file=config.xlsx -out=csv linux: ./excel_to_csv -file=config.xlsx -out=csv ```