Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xuri
excelize
提交
9c70d0ac
excelize
项目概览
xuri
/
excelize
通知
13
Star
2
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
excelize
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
已验证
提交
9c70d0ac
编写于
8月 11, 2019
作者:
xurime
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation updated, Go 1.10+ required
上级
adc4aed4
变更
43
隐藏空白更改
内联
并排
Showing
43 changed file
with
48 addition
and
47 deletion
+48
-47
.travis.yml
.travis.yml
+0
-1
adjust.go
adjust.go
+1
-1
calcchain.go
calcchain.go
+1
-1
cell.go
cell.go
+1
-1
cellmerged.go
cellmerged.go
+1
-1
chart.go
chart.go
+1
-1
col.go
col.go
+1
-1
comment.go
comment.go
+1
-1
datavalidation.go
datavalidation.go
+1
-1
datavalidation_test.go
datavalidation_test.go
+1
-1
date.go
date.go
+1
-1
docProps.go
docProps.go
+1
-1
docProps_test.go
docProps_test.go
+1
-1
errors.go
errors.go
+1
-1
excelize.go
excelize.go
+1
-1
file.go
file.go
+1
-1
lib.go
lib.go
+1
-1
picture.go
picture.go
+1
-1
rows.go
rows.go
+1
-1
shape.go
shape.go
+1
-1
sheet.go
sheet.go
+1
-3
sheetpr.go
sheetpr.go
+1
-1
sheetview.go
sheetview.go
+1
-1
sparkline.go
sparkline.go
+1
-1
styles.go
styles.go
+1
-1
table.go
table.go
+1
-1
templates.go
templates.go
+1
-1
test/SharedStrings.xlsx
test/SharedStrings.xlsx
+0
-0
vmlDrawing.go
vmlDrawing.go
+1
-1
xmlApp.go
xmlApp.go
+7
-1
xmlCalcChain.go
xmlCalcChain.go
+1
-1
xmlChart.go
xmlChart.go
+1
-1
xmlComments.go
xmlComments.go
+1
-1
xmlContentTypes.go
xmlContentTypes.go
+1
-1
xmlCore.go
xmlCore.go
+1
-1
xmlDecodeDrawing.go
xmlDecodeDrawing.go
+1
-1
xmlDrawing.go
xmlDrawing.go
+1
-1
xmlSharedStrings.go
xmlSharedStrings.go
+1
-1
xmlStyles.go
xmlStyles.go
+1
-1
xmlTable.go
xmlTable.go
+1
-1
xmlTheme.go
xmlTheme.go
+1
-1
xmlWorkbook.go
xmlWorkbook.go
+1
-1
xmlWorksheet.go
xmlWorksheet.go
+2
-4
未找到文件。
.travis.yml
浏览文件 @
9c70d0ac
...
...
@@ -4,7 +4,6 @@ install:
-
go get -d -t -v ./... && go build -v ./...
go
:
-
1.9.x
-
1.10.x
-
1.11.x
-
1.12.x
...
...
adjust.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
calcchain.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
cell.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
cellmerged.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
chart.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
col.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
comment.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
datavalidation.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
datavalidation_test.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
date.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
docProps.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
docProps_test.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
errors.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
excelize.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
//
// See https://xuri.me/excelize for more information about this package.
package
excelize
...
...
file.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
lib.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
picture.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
rows.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
shape.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
sheet.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
@@ -740,9 +740,7 @@ func (f *File) searchSheet(name, value string, regSearch bool) ([]string, error)
result
[]
string
r
xlsxRow
)
xml
.
NewDecoder
(
bytes
.
NewReader
(
f
.
readXML
(
name
)))
d
:=
f
.
sharedStringsReader
()
decoder
:=
xml
.
NewDecoder
(
bytes
.
NewReader
(
f
.
readXML
(
name
)))
for
{
token
,
_
:=
decoder
.
Token
()
...
...
sheetpr.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
sheetview.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
sparkline.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
styles.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
table.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
templates.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
//
// This file contains default templates for XML files we don't yet populated
// based on content.
...
...
test/SharedStrings.xlsx
浏览文件 @
9c70d0ac
无法预览此类型文件
vmlDrawing.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlApp.go
浏览文件 @
9c70d0ac
...
...
@@ -5,12 +5,15 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
import
"encoding/xml"
// xlsxProperties specifies to an OOXML document properties such as the
// template used, the number of pages and words, and the application name and
// version.
type
xlsxProperties
struct
{
XMLName
xml
.
Name
`xml:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties Properties"`
Template
string
...
...
@@ -42,6 +45,8 @@ type xlsxProperties struct {
DocSecurity
int
}
// xlsxVectorVariant specifies the set of hyperlinks that were in this
// document when last saved.
type
xlsxVectorVariant
struct
{
Content
string
`xml:",innerxml"`
}
...
...
@@ -50,6 +55,7 @@ type xlsxVectorLpstr struct {
Content
string
`xml:",innerxml"`
}
// xlsxDigSig contains the signature of a digitally signed document.
type
xlsxDigSig
struct
{
Content
string
`xml:",innerxml"`
}
xmlCalcChain.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlChart.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlComments.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlContentTypes.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlCore.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlDecodeDrawing.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlDrawing.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlSharedStrings.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlStyles.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlTable.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlTheme.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlWorkbook.go
浏览文件 @
9c70d0ac
...
...
@@ -5,7 +5,7 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
...
...
xmlWorksheet.go
浏览文件 @
9c70d0ac
...
...
@@ -5,13 +5,11 @@
// Package excelize providing a set of functions that allow you to write to
// and read from XLSX files. Support reads and writes XLSX file generated by
// Microsoft Excel™ 2007 and later. Support save file without losing original
// charts of XLSX. This library needs Go version 1.
8
or later.
// charts of XLSX. This library needs Go version 1.
10
or later.
package
excelize
import
(
"encoding/xml"
)
import
"encoding/xml"
// xlsxWorksheet directly maps the worksheet element in the namespace
// http://schemas.openxmlformats.org/spreadsheetml/2006/main - currently I have
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录