Skip to content

Commit e9ae9b4

Browse files
committed
change go module import path to github.com/xuri/excelize
1 parent f9e9e5d commit e9ae9b4

File tree

15 files changed

+51
-45
lines changed

15 files changed

+51
-45
lines changed

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
patreon: xuri
2+
open_collective: excelize
3+
ko_fi: xurime
4+
liberapay: xuri
5+
issuehunt: xuri
6+
custom: https://www.paypal.com/paypalme/xuri

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A great way to contribute to the project is to send a detailed report when you
3131
encounter an issue. We always appreciate a well-written, thorough bug report,
3232
and will thank you for it!
3333

34-
Check that [our issue database](https://github.com/360EntSecGroup-Skylar/excelize/issues)
34+
Check that [our issue database](https://github.com/xuri/excelize/issues)
3535
doesn't already include that problem or suggestion before submitting an issue.
3636
If you find a match, you can use the "subscribe" button to get notified on
3737
updates. Do *not* leave random "+1" or "I have this too" comments, as they
@@ -55,7 +55,7 @@ This section gives the experienced contributor some tips and guidelines.
5555

5656
Not sure if that typo is worth a pull request? Found a bug and know how to fix
5757
it? Do it! We will appreciate it. Any significant improvement should be
58-
documented as [a GitHub issue](https://github.com/360EntSecGroup-Skylar/excelize/issues) before
58+
documented as [a GitHub issue](https://github.com/xuri/excelize/issues) before
5959
anybody starts working on it.
6060

6161
We are always thrilled to receive pull requests. We do our best to process them

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p align="center"><img width="650" src="./excelize.svg" alt="Excelize logo"></p>
22

33
<p align="center">
4-
<a href="https://github.com/360EntSecGroup-Skylar/excelize/actions/workflows/go.yml"><img src="https://github.com/360EntSecGroup-Skylar/excelize/actions/workflows/go.yml/badge.svg" alt="Build Status"></a>
5-
<a href="https://codecov.io/gh/360EntSecGroup-Skylar/excelize"><img src="https://codecov.io/gh/360EntSecGroup-Skylar/excelize/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6-
<a href="https://goreportcard.com/report/github.com/360EntSecGroup-Skylar/excelize"><img src="https://goreportcard.com/badge/github.com/360EntSecGroup-Skylar/excelize" alt="Go Report Card"></a>
7-
<a href="https://pkg.go.dev/github.com/360EntSecGroup-Skylar/excelize/v2?tab=doc"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white" alt="go.dev"></a>
4+
<a href="https://github.com/xuri/excelize/actions/workflows/go.yml"><img src="https://github.com/xuri/excelize/actions/workflows/go.yml/badge.svg" alt="Build Status"></a>
5+
<a href="https://codecov.io/gh/qax-os/excelize"><img src="https://codecov.io/gh/qax-os/excelize/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6+
<a href="https://goreportcard.com/report/github.com/xuri/excelize"><img src="https://goreportcard.com/badge/github.com/xuri/excelize" alt="Go Report Card"></a>
7+
<a href="https://pkg.go.dev/github.com/xuri/excelize/v2?tab=doc"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white" alt="go.dev"></a>
88
<a href="https://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/license-bsd-orange.svg" alt="Licenses"></a>
99
<a href="https://www.paypal.com/paypalme/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
1010
</p>
@@ -13,20 +13,20 @@
1313

1414
## Introduction
1515

16-
Excelize is a library written in pure Go providing a set of functions that allow you to write to and read from XLSX / XLSM / XLTM / XLTX files. Supports reading and writing spreadsheet documents generated by Microsoft Excel&trade; 2007 and later. Supports complex components by high compatibility, and provided streaming API for generating or reading data from a worksheet with huge amounts of data. This library needs Go version 1.15 or later. The full API docs can be seen using go's built-in documentation tool, or online at [go.dev](https://pkg.go.dev/github.com/360EntSecGroup-Skylar/excelize/v2?tab=doc) and [docs reference](https://xuri.me/excelize/).
16+
Excelize is a library written in pure Go providing a set of functions that allow you to write to and read from XLSX / XLSM / XLTM / XLTX files. Supports reading and writing spreadsheet documents generated by Microsoft Excel&trade; 2007 and later. Supports complex components by high compatibility, and provided streaming API for generating or reading data from a worksheet with huge amounts of data. This library needs Go version 1.15 or later. The full API docs can be seen using go's built-in documentation tool, or online at [go.dev](https://pkg.go.dev/github.com/xuri/excelize/v2?tab=doc) and [docs reference](https://xuri.me/excelize/).
1717

1818
## Basic Usage
1919

2020
### Installation
2121

2222
```bash
23-
go get github.com/360EntSecGroup-Skylar/excelize
23+
go get github.com/xuri/excelize
2424
```
2525

2626
- If your packages are managed using [Go Modules](https://blog.golang.org/using-go-modules), please install with following command.
2727

2828
```bash
29-
go get github.com/360EntSecGroup-Skylar/excelize/v2
29+
go get github.com/xuri/excelize/v2
3030
```
3131

3232
### Create spreadsheet
@@ -39,7 +39,7 @@ package main
3939
import (
4040
"fmt"
4141

42-
"github.com/360EntSecGroup-Skylar/excelize/v2"
42+
"github.com/xuri/excelize/v2"
4343
)
4444

4545
func main() {
@@ -68,7 +68,7 @@ package main
6868
import (
6969
"fmt"
7070

71-
"github.com/360EntSecGroup-Skylar/excelize/v2"
71+
"github.com/xuri/excelize/v2"
7272
)
7373

7474
func main() {
@@ -111,7 +111,7 @@ package main
111111
import (
112112
"fmt"
113113

114-
"github.com/360EntSecGroup-Skylar/excelize/v2"
114+
"github.com/xuri/excelize/v2"
115115
)
116116

117117
func main() {
@@ -171,7 +171,7 @@ import (
171171
_ "image/jpeg"
172172
_ "image/png"
173173

174-
"github.com/360EntSecGroup-Skylar/excelize/v2"
174+
"github.com/xuri/excelize/v2"
175175
)
176176

177177
func main() {

README_zh.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p align="center"><img width="650" src="./excelize.svg" alt="Excelize logo"></p>
22

33
<p align="center">
4-
<a href="https://github.com/360EntSecGroup-Skylar/excelize/actions/workflows/go.yml"><img src="https://github.com/360EntSecGroup-Skylar/excelize/actions/workflows/go.yml/badge.svg" alt="Build Status"></a>
5-
<a href="https://codecov.io/gh/360EntSecGroup-Skylar/excelize"><img src="https://codecov.io/gh/360EntSecGroup-Skylar/excelize/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6-
<a href="https://goreportcard.com/report/github.com/360EntSecGroup-Skylar/excelize"><img src="https://goreportcard.com/badge/github.com/360EntSecGroup-Skylar/excelize" alt="Go Report Card"></a>
7-
<a href="https://pkg.go.dev/github.com/360EntSecGroup-Skylar/excelize/v2?tab=doc"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white" alt="go.dev"></a>
4+
<a href="https://github.com/xuri/excelize/actions/workflows/go.yml"><img src="https://github.com/xuri/excelize/actions/workflows/go.yml/badge.svg" alt="Build Status"></a>
5+
<a href="https://codecov.io/gh/qax-os/excelize"><img src="https://codecov.io/gh/qax-os/excelize/branch/master/graph/badge.svg" alt="Code Coverage"></a>
6+
<a href="https://goreportcard.com/report/github.com/xuri/excelize"><img src="https://goreportcard.com/badge/github.com/xuri/excelize" alt="Go Report Card"></a>
7+
<a href="https://pkg.go.dev/github.com/xuri/excelize/v2?tab=doc"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white" alt="go.dev"></a>
88
<a href="https://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/license-bsd-orange.svg" alt="Licenses"></a>
99
<a href="https://www.paypal.com/paypalme/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
1010
</p>
@@ -13,20 +13,20 @@
1313

1414
## 简介
1515

16-
Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel&trade; 2007 及以上版本创建的电子表格文档。支持 XLSX / XLSM / XLTM / XLTX 等多种文档格式,高度兼容带有样式、图片(表)、透视表、切片器等复杂组件的文档,并提供流式读写 API,用于处理包含大规模数据的工作簿。可应用于各类报表平台、云计算、边缘计算等系统。使用本类库要求使用的 Go 语言为 1.15 或更高版本,完整的 API 使用文档请访问 [go.dev](https://pkg.go.dev/github.com/360EntSecGroup-Skylar/excelize/v2?tab=doc) 或查看 [参考文档](https://xuri.me/excelize/)
16+
Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel&trade; 2007 及以上版本创建的电子表格文档。支持 XLSX / XLSM / XLTM / XLTX 等多种文档格式,高度兼容带有样式、图片(表)、透视表、切片器等复杂组件的文档,并提供流式读写 API,用于处理包含大规模数据的工作簿。可应用于各类报表平台、云计算、边缘计算等系统。使用本类库要求使用的 Go 语言为 1.15 或更高版本,完整的 API 使用文档请访问 [go.dev](https://pkg.go.dev/github.com/xuri/excelize/v2?tab=doc) 或查看 [参考文档](https://xuri.me/excelize/)
1717

1818
## 快速上手
1919

2020
### 安装
2121

2222
```bash
23-
go get github.com/360EntSecGroup-Skylar/excelize
23+
go get github.com/xuri/excelize
2424
```
2525

2626
- 如果您使用 [Go Modules](https://blog.golang.org/using-go-modules) 管理软件包,请使用下面的命令来安装最新版本。
2727

2828
```bash
29-
go get github.com/360EntSecGroup-Skylar/excelize/v2
29+
go get github.com/xuri/excelize/v2
3030
```
3131

3232
### 创建 Excel 文档
@@ -39,7 +39,7 @@ package main
3939
import (
4040
"fmt"
4141

42-
"github.com/360EntSecGroup-Skylar/excelize/v2"
42+
"github.com/xuri/excelize/v2"
4343
)
4444

4545
func main() {
@@ -68,7 +68,7 @@ package main
6868
import (
6969
"fmt"
7070

71-
"github.com/360EntSecGroup-Skylar/excelize/v2"
71+
"github.com/xuri/excelize/v2"
7272
)
7373

7474
func main() {
@@ -111,7 +111,7 @@ package main
111111
import (
112112
"fmt"
113113

114-
"github.com/360EntSecGroup-Skylar/excelize/v2"
114+
"github.com/xuri/excelize/v2"
115115
)
116116

117117
func main() {
@@ -171,7 +171,7 @@ import (
171171
_ "image/jpeg"
172172
_ "image/png"
173173

174-
"github.com/360EntSecGroup-Skylar/excelize/v2"
174+
"github.com/xuri/excelize/v2"
175175
)
176176

177177
func main() {

cell.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ type HyperlinkOpts struct {
468468
// in this workbook. Maximum limit hyperlinks in a worksheet is 65530. The
469469
// below is example for external link.
470470
//
471-
// err := f.SetCellHyperLink("Sheet1", "A3", "https://github.com/360EntSecGroup-Skylar/excelize", "External")
471+
// err := f.SetCellHyperLink("Sheet1", "A3", "https://github.com/xuri/excelize", "External")
472472
// // Set underline and font color style for the cell.
473473
// style, err := f.NewStyle(`{"font":{"color":"#1265BE","underline":"single"}}`)
474474
// err = f.SetCellStyle("Sheet1", "A3", "A3", style)
@@ -594,7 +594,7 @@ func (f *File) GetCellRichText(sheet, cell string) (runs []RichTextRun, err erro
594594
// import (
595595
// "fmt"
596596
//
597-
// "github.com/360EntSecGroup-Skylar/excelize/v2"
597+
// "github.com/xuri/excelize/v2"
598598
// )
599599
//
600600
// func main() {

cell_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestConcurrency(t *testing.T) {
4141
assert.NoError(t, f.SetCellStyle("Sheet1", "A3", "A3", style))
4242
// Concurrency add picture
4343
assert.NoError(t, f.AddPicture("Sheet1", "F21", filepath.Join("test", "images", "excel.jpg"),
44-
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/360EntSecGroup-Skylar/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`))
44+
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/xuri/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`))
4545
// Concurrency get cell picture
4646
name, raw, err := f.GetPicture("Sheet1", "A1")
4747
assert.Equal(t, "", name)

chart.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) {
510510
// import (
511511
// "fmt"
512512
//
513-
// "github.com/360EntSecGroup-Skylar/excelize/v2"
513+
// "github.com/xuri/excelize/v2"
514514
// )
515515
//
516516
// func main() {
@@ -783,7 +783,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) {
783783
// import (
784784
// "fmt"
785785
//
786-
// "github.com/360EntSecGroup-Skylar/excelize/v2"
786+
// "github.com/xuri/excelize/v2"
787787
// )
788788
//
789789
// func main() {

col_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func TestInsertCol(t *testing.T) {
338338

339339
fillCells(f, sheet1, 10, 10)
340340

341-
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
341+
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/xuri/excelize", "External"))
342342
assert.NoError(t, f.MergeCell(sheet1, "A1", "C3"))
343343

344344
assert.NoError(t, f.AutoFilter(sheet1, "A2", "B2", `{"column":"B","expression":"x != blanks"}`))
@@ -356,7 +356,7 @@ func TestRemoveCol(t *testing.T) {
356356

357357
fillCells(f, sheet1, 10, 15)
358358

359-
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
359+
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/xuri/excelize", "External"))
360360
assert.NoError(t, f.SetCellHyperLink(sheet1, "C5", "https://github.com", "External"))
361361

362362
assert.NoError(t, f.MergeCell(sheet1, "A1", "B1"))

excelize_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ func TestSetCellHyperLink(t *testing.T) {
322322
t.Log(err)
323323
}
324324
// Test set cell hyperlink in a work sheet already have hyperlinks.
325-
assert.NoError(t, f.SetCellHyperLink("Sheet1", "B19", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
325+
assert.NoError(t, f.SetCellHyperLink("Sheet1", "B19", "https://github.com/xuri/excelize", "External"))
326326
// Test add first hyperlink in a work sheet.
327-
assert.NoError(t, f.SetCellHyperLink("Sheet2", "C1", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
327+
assert.NoError(t, f.SetCellHyperLink("Sheet2", "C1", "https://github.com/xuri/excelize", "External"))
328328
// Test add Location hyperlink in a work sheet.
329329
assert.NoError(t, f.SetCellHyperLink("Sheet2", "D6", "Sheet1!D8", "Location"))
330330
// Test add Location hyperlink with display & tooltip in a work sheet.
@@ -347,15 +347,15 @@ func TestSetCellHyperLink(t *testing.T) {
347347
ws, ok := f.Sheet.Load("xl/worksheets/sheet1.xml")
348348
assert.True(t, ok)
349349
ws.(*xlsxWorksheet).Hyperlinks = &xlsxHyperlinks{Hyperlink: make([]xlsxHyperlink, 65530)}
350-
assert.EqualError(t, f.SetCellHyperLink("Sheet1", "A65531", "https://github.com/360EntSecGroup-Skylar/excelize", "External"), ErrTotalSheetHyperlinks.Error())
350+
assert.EqualError(t, f.SetCellHyperLink("Sheet1", "A65531", "https://github.com/xuri/excelize", "External"), ErrTotalSheetHyperlinks.Error())
351351

352352
f = NewFile()
353353
_, err = f.workSheetReader("Sheet1")
354354
assert.NoError(t, err)
355355
ws, ok = f.Sheet.Load("xl/worksheets/sheet1.xml")
356356
assert.True(t, ok)
357357
ws.(*xlsxWorksheet).MergeCells = &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: "A:A"}}}
358-
err = f.SetCellHyperLink("Sheet1", "A1", "https://github.com/360EntSecGroup-Skylar/excelize", "External")
358+
err = f.SetCellHyperLink("Sheet1", "A1", "https://github.com/xuri/excelize", "External")
359359
assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`)
360360
}
361361

@@ -1272,7 +1272,7 @@ func prepareTestBook1() (*File, error) {
12721272

12731273
// Test add picture to worksheet with offset, external hyperlink and positioning.
12741274
err = f.AddPicture("Sheet1", "F21", filepath.Join("test", "images", "excel.png"),
1275-
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/360EntSecGroup-Skylar/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`)
1275+
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/xuri/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`)
12761276
if err != nil {
12771277
return nil, err
12781278
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/360EntSecGroup-Skylar/excelize/v2
1+
module github.com/xuri/excelize/v2
22

33
go 1.15
44

0 commit comments

Comments
 (0)