Skip to content

Commit 4c9af62

Browse files
author
罗培淮
committed
chore: 包路径
1 parent a8edf18 commit 4c9af62

12 files changed

+32
-32
lines changed

CONTRIBUTING.md

+2-2
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/kerwinruby/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/kerwinruby/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

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">
44
<a href="https://travis-ci.org/360EntSecGroup-Skylar/excelize"><img src="https://travis-ci.org/360EntSecGroup-Skylar/excelize.svg?branch=master" alt="Build Status"></a>
55
<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>
6+
<a href="https://goreportcard.com/report/github.com/kerwinruby/excelize"><img src="https://goreportcard.com/badge/github.com/kerwinruby/excelize" alt="Go Report Card"></a>
77
<a href="https://pkg.go.dev/github.com/kerwinruby/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.me/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
@@ -21,7 +21,7 @@ Supports saving a file without losing original charts of XLSX. This library need
2121
### Installation
2222

2323
```bash
24-
go get github.com/360EntSecGroup-Skylar/excelize
24+
go get github.com/kerwinruby/excelize
2525
```
2626

2727
### Create XLSX file
@@ -34,7 +34,7 @@ package main
3434
import (
3535
"fmt"
3636

37-
"github.com/360EntSecGroup-Skylar/excelize"
37+
"github.com/kerwinruby/excelize"
3838
)
3939

4040
func main() {
@@ -63,7 +63,7 @@ package main
6363
import (
6464
"fmt"
6565

66-
"github.com/360EntSecGroup-Skylar/excelize"
66+
"github.com/kerwinruby/excelize"
6767
)
6868

6969
func main() {
@@ -102,7 +102,7 @@ package main
102102
import (
103103
"fmt"
104104

105-
"github.com/360EntSecGroup-Skylar/excelize"
105+
"github.com/kerwinruby/excelize"
106106
)
107107

108108
func main() {
@@ -137,7 +137,7 @@ import (
137137
_ "image/jpeg"
138138
_ "image/png"
139139

140-
"github.com/360EntSecGroup-Skylar/excelize"
140+
"github.com/kerwinruby/excelize"
141141
)
142142

143143
func main() {

README_zh.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">
44
<a href="https://travis-ci.org/360EntSecGroup-Skylar/excelize"><img src="https://travis-ci.org/360EntSecGroup-Skylar/excelize.svg?branch=master" alt="Build Status"></a>
55
<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>
6+
<a href="https://goreportcard.com/report/github.com/kerwinruby/excelize"><img src="https://goreportcard.com/badge/github.com/kerwinruby/excelize" alt="Go Report Card"></a>
77
<a href="https://pkg.go.dev/github.com/kerwinruby/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.me/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
@@ -20,7 +20,7 @@ Excelize 是 Go 语言编写的用于操作 Office Excel 文档类库,基于 E
2020
### 安装
2121

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

2626
### 创建 Excel 文档
@@ -33,7 +33,7 @@ package main
3333
import (
3434
"fmt"
3535

36-
"github.com/360EntSecGroup-Skylar/excelize"
36+
"github.com/kerwinruby/excelize"
3737
)
3838

3939
func main() {
@@ -62,7 +62,7 @@ package main
6262
import (
6363
"fmt"
6464

65-
"github.com/360EntSecGroup-Skylar/excelize"
65+
"github.com/kerwinruby/excelize"
6666
)
6767

6868
func main() {
@@ -101,7 +101,7 @@ package main
101101
import (
102102
"fmt"
103103

104-
"github.com/360EntSecGroup-Skylar/excelize"
104+
"github.com/kerwinruby/excelize"
105105
)
106106

107107
func main() {
@@ -136,7 +136,7 @@ import (
136136
_ "image/jpeg"
137137
_ "image/png"
138138

139-
"github.com/360EntSecGroup-Skylar/excelize"
139+
"github.com/kerwinruby/excelize"
140140
)
141141

142142
func main() {

cell.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ func (f *File) GetCellHyperLink(sheet, axis string) (bool, string, error) {
401401
// in this workbook. Maximum limit hyperlinks in a worksheet is 65530. The
402402
// below is example for external link.
403403
//
404-
// err := f.SetCellHyperLink("Sheet1", "A3", "https://github.com/360EntSecGroup-Skylar/excelize", "External")
404+
// err := f.SetCellHyperLink("Sheet1", "A3", "https://github.com/kerwinruby/excelize", "External")
405405
// // Set underline and font color style for the cell.
406406
// style, err := f.NewStyle(`{"font":{"color":"#1265BE","underline":"single"}}`)
407407
// err = f.SetCellStyle("Sheet1", "A3", "A3", style)

chart.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) {
508508
// import (
509509
// "fmt"
510510
//
511-
// "github.com/360EntSecGroup-Skylar/excelize"
511+
// "github.com/kerwinruby/excelize"
512512
// )
513513
//
514514
// func main() {
@@ -706,7 +706,7 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) {
706706
// import (
707707
// "fmt"
708708
//
709-
// "github.com/360EntSecGroup-Skylar/excelize"
709+
// "github.com/kerwinruby/excelize"
710710
// )
711711
//
712712
// func main() {

col_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func TestInsertCol(t *testing.T) {
174174

175175
fillCells(f, sheet1, 10, 10)
176176

177-
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
177+
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/kerwinruby/excelize", "External"))
178178
assert.NoError(t, f.MergeCell(sheet1, "A1", "C3"))
179179

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

193193
fillCells(f, sheet1, 10, 15)
194194

195-
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
195+
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/kerwinruby/excelize", "External"))
196196
assert.NoError(t, f.SetCellHyperLink(sheet1, "C5", "https://github.com", "External"))
197197

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

excelize_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ func TestSetCellHyperLink(t *testing.T) {
296296
t.Log(err)
297297
}
298298
// Test set cell hyperlink in a work sheet already have hyperlinks.
299-
assert.NoError(t, f.SetCellHyperLink("Sheet1", "B19", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
299+
assert.NoError(t, f.SetCellHyperLink("Sheet1", "B19", "https://github.com/kerwinruby/excelize", "External"))
300300
// Test add first hyperlink in a work sheet.
301-
assert.NoError(t, f.SetCellHyperLink("Sheet2", "C1", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
301+
assert.NoError(t, f.SetCellHyperLink("Sheet2", "C1", "https://github.com/kerwinruby/excelize", "External"))
302302
// Test add Location hyperlink in a work sheet.
303303
assert.NoError(t, f.SetCellHyperLink("Sheet2", "D6", "Sheet1!D8", "Location"))
304304

@@ -312,13 +312,13 @@ func TestSetCellHyperLink(t *testing.T) {
312312
_, err = f.workSheetReader("Sheet1")
313313
assert.NoError(t, err)
314314
f.Sheet["xl/worksheets/sheet1.xml"].Hyperlinks = &xlsxHyperlinks{Hyperlink: make([]xlsxHyperlink, 65530)}
315-
assert.EqualError(t, f.SetCellHyperLink("Sheet1", "A65531", "https://github.com/360EntSecGroup-Skylar/excelize", "External"), "over maximum limit hyperlinks in a worksheet")
315+
assert.EqualError(t, f.SetCellHyperLink("Sheet1", "A65531", "https://github.com/kerwinruby/excelize", "External"), "over maximum limit hyperlinks in a worksheet")
316316

317317
f = NewFile()
318318
_, err = f.workSheetReader("Sheet1")
319319
assert.NoError(t, err)
320320
f.Sheet["xl/worksheets/sheet1.xml"].MergeCells = &xlsxMergeCells{Cells: []*xlsxMergeCell{{Ref: "A:A"}}}
321-
err = f.SetCellHyperLink("Sheet1", "A1", "https://github.com/360EntSecGroup-Skylar/excelize", "External")
321+
err = f.SetCellHyperLink("Sheet1", "A1", "https://github.com/kerwinruby/excelize", "External")
322322
assert.EqualError(t, err, `cannot convert cell "A" to coordinates: invalid cell name "A"`)
323323
}
324324

@@ -1240,7 +1240,7 @@ func prepareTestBook1() (*File, error) {
12401240

12411241
// Test add picture to worksheet with offset, external hyperlink and positioning.
12421242
err = f.AddPicture("Sheet1", "F21", filepath.Join("test", "images", "excel.png"),
1243-
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/360EntSecGroup-Skylar/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`)
1243+
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/kerwinruby/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`)
12441244
if err != nil {
12451245
return nil, err
12461246
}

merge_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TestMergeCell(t *testing.T) {
2424
assert.NoError(t, f.SetCellValue("Sheet1", "G11", "set value in merged cell"))
2525
assert.NoError(t, f.SetCellInt("Sheet1", "H11", 100))
2626
assert.NoError(t, f.SetCellValue("Sheet1", "I11", float64(0.5)))
27-
assert.NoError(t, f.SetCellHyperLink("Sheet1", "J11", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
27+
assert.NoError(t, f.SetCellHyperLink("Sheet1", "J11", "https://github.com/kerwinruby/excelize", "External"))
2828
assert.NoError(t, f.SetCellFormula("Sheet1", "G12", "SUM(Sheet1!B19,Sheet1!C19)"))
2929
value, err := f.GetCellValue("Sheet1", "H11")
3030
assert.Equal(t, "0.5", value)

picture.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func parseFormatPictureSet(formatSet string) (*formatPicture, error) {
5252
// _ "image/jpeg"
5353
// _ "image/png"
5454
//
55-
// "github.com/360EntSecGroup-Skylar/excelize"
55+
// "github.com/kerwinruby/excelize"
5656
// )
5757
//
5858
// func main() {
@@ -66,7 +66,7 @@ func parseFormatPictureSet(formatSet string) (*formatPicture, error) {
6666
// fmt.Println(err)
6767
// }
6868
// // Insert a picture offset in the cell with external hyperlink, printing and positioning support.
69-
// if err := f.AddPicture("Sheet1", "H2", "image.gif", `{"x_offset": 15, "y_offset": 10, "hyperlink": "https://github.com/360EntSecGroup-Skylar/excelize", "hyperlink_type": "External", "print_obj": true, "lock_aspect_ratio": false, "locked": false, "positioning": "oneCell"}`); err != nil {
69+
// if err := f.AddPicture("Sheet1", "H2", "image.gif", `{"x_offset": 15, "y_offset": 10, "hyperlink": "https://github.com/kerwinruby/excelize", "hyperlink_type": "External", "print_obj": true, "lock_aspect_ratio": false, "locked": false, "positioning": "oneCell"}`); err != nil {
7070
// fmt.Println(err)
7171
// }
7272
// if err := f.SaveAs("Book1.xlsx"); err != nil {
@@ -108,7 +108,7 @@ func (f *File) AddPicture(sheet, cell, picture, format string) error {
108108
// _ "image/jpeg"
109109
// "io/ioutil"
110110
//
111-
// "github.com/360EntSecGroup-Skylar/excelize"
111+
// "github.com/kerwinruby/excelize"
112112
// )
113113
//
114114
// func main() {

picture_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestAddPicture(t *testing.T) {
4242
`{"x_offset": 140, "y_offset": 120, "hyperlink": "#Sheet2!D8", "hyperlink_type": "Location"}`))
4343
// Test add picture to worksheet with offset, external hyperlink and positioning.
4444
assert.NoError(t, f.AddPicture("Sheet1", "F21", filepath.Join("test", "images", "excel.jpg"),
45-
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/360EntSecGroup-Skylar/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`))
45+
`{"x_offset": 10, "y_offset": 10, "hyperlink": "https://github.com/kerwinruby/excelize", "hyperlink_type": "External", "positioning": "oneCell"}`))
4646

4747
file, err := ioutil.ReadFile(filepath.Join("test", "images", "excel.png"))
4848
assert.NoError(t, err)

pivotTable.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type PivotTableField struct {
6464
// "fmt"
6565
// "math/rand"
6666
//
67-
// "github.com/360EntSecGroup-Skylar/excelize"
67+
// "github.com/kerwinruby/excelize"
6868
// )
6969
//
7070
// func main() {

rows_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestRemoveRow(t *testing.T) {
208208
)
209209
fillCells(f, sheet1, colCount, rowCount)
210210

211-
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
211+
assert.NoError(t, f.SetCellHyperLink(sheet1, "A5", "https://github.com/kerwinruby/excelize", "External"))
212212

213213
assert.EqualError(t, f.RemoveRow(sheet1, -1), "invalid row number -1")
214214

@@ -269,7 +269,7 @@ func TestInsertRow(t *testing.T) {
269269
)
270270
fillCells(xlsx, sheet1, colCount, rowCount)
271271

272-
assert.NoError(t, xlsx.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/excelize", "External"))
272+
assert.NoError(t, xlsx.SetCellHyperLink(sheet1, "A5", "https://github.com/kerwinruby/excelize", "External"))
273273

274274
assert.EqualError(t, xlsx.InsertRow(sheet1, -1), "invalid row number -1")
275275

0 commit comments

Comments
 (0)