mirror of
https://github.com/ZeroHawkeye/wordZero.git
synced 2025-09-26 20:01:17 +08:00
update readme
This commit is contained in:
31
README.md
31
README.md
@@ -35,6 +35,37 @@ WordZero is a Golang-based Word document manipulation library that provides basi
|
||||
- ⚡ **Excellent Performance**: Zero-dependency pure Go implementation, average 2.62ms processing speed, 3.7x faster than JavaScript, 21x faster than Python
|
||||
- 🔧 **Easy to Use**: Clean API design with fluent interface support
|
||||
|
||||
## Related Recommended Projects
|
||||
|
||||
### Excel Document Operations - Excelize
|
||||
|
||||
If you need to work with Excel documents, we highly recommend [**Excelize**](https://github.com/qax-os/excelize) —— the most popular Go library for Excel operations:
|
||||
|
||||
- ⭐ **19.2k+ GitHub Stars** - The most popular Excel processing library in the Go ecosystem
|
||||
- 📊 **Complete Excel Support** - Supports all modern Excel formats including XLAM/XLSM/XLSX/XLTM/XLTX
|
||||
- 🎯 **Feature Rich** - Charts, pivot tables, images, streaming APIs, and more
|
||||
- 🚀 **High Performance** - Streaming read/write APIs optimized for large datasets
|
||||
- 🔧 **Easy Integration** - Perfect complement to WordZero for complete Office document processing solutions
|
||||
|
||||
**Perfect Combination**: WordZero handles Word documents, Excelize handles Excel documents, together providing comprehensive Office document manipulation capabilities for your Go projects.
|
||||
|
||||
```go
|
||||
// WordZero + Excelize combination example
|
||||
import (
|
||||
"github.com/ZeroHawkeye/wordZero/pkg/document"
|
||||
"github.com/qax-os/excelize/v2"
|
||||
)
|
||||
|
||||
// Create Word report
|
||||
doc := document.New()
|
||||
doc.AddParagraph("Data Analysis Report").SetStyle(style.StyleHeading1)
|
||||
|
||||
// Create Excel data sheet
|
||||
xlsx := excelize.NewFile()
|
||||
xlsx.SetCellValue("Sheet1", "A1", "Data Item")
|
||||
xlsx.SetCellValue("Sheet1", "B1", "Value")
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
|
31
README_zh.md
31
README_zh.md
@@ -35,6 +35,37 @@ WordZero 是一个使用 Golang 实现的 Word 文档操作库,提供基础的
|
||||
- ⚡ **卓越性能**: 零依赖的纯Go实现,平均2.62ms处理速度,比JavaScript快3.7倍,比Python快21倍
|
||||
- 🔧 **易于使用**: 简洁的API设计,链式调用支持
|
||||
|
||||
## 相关推荐项目
|
||||
|
||||
### Excel文档操作推荐 - Excelize
|
||||
|
||||
如果您需要处理Excel文档,我们强烈推荐使用 [**Excelize**](https://github.com/qax-os/excelize) —— 最受欢迎的Go语言Excel操作库:
|
||||
|
||||
- ⭐ **GitHub 19.2k+ 星标** - Go生态系统中最受欢迎的Excel处理库
|
||||
- 📊 **完整Excel支持** - 支持XLAM/XLSM/XLSX/XLTM/XLTX等所有现代Excel格式
|
||||
- 🎯 **功能丰富** - 图表、数据透视表、图片、流式API等完整功能
|
||||
- 🚀 **高性能** - 专为大数据集处理优化的流式读写API
|
||||
- 🔧 **易于集成** - 与WordZero完美互补,构建完整的Office文档处理解决方案
|
||||
|
||||
**完美搭配**: WordZero负责Word文档处理,Excelize负责Excel文档处理,共同为您的Go项目提供完整的Office文档操作能力。
|
||||
|
||||
```go
|
||||
// WordZero + Excelize 组合示例
|
||||
import (
|
||||
"github.com/ZeroHawkeye/wordZero/pkg/document"
|
||||
"github.com/xuri/excelize/v2"
|
||||
)
|
||||
|
||||
// 创建Word报告
|
||||
doc := document.New()
|
||||
doc.AddParagraph("数据分析报告").SetStyle(style.StyleHeading1)
|
||||
|
||||
// 创建Excel数据表
|
||||
xlsx := excelize.NewFile()
|
||||
xlsx.SetCellValue("Sheet1", "A1", "数据项")
|
||||
xlsx.SetCellValue("Sheet1", "B1", "数值")
|
||||
```
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user