瀏覽代碼

Add new logo for excelize

xuri 7 年之前
父節點
當前提交
b89f75c896
共有 10 個文件被更改,包括 26 次插入22 次删除
  1. 11 9
      README.md
  2. 11 9
      README_zh.md
  3. 1 1
      excelize.go
  4. 二進制
      excelize.png
  5. 3 3
      excelize_test.go
  6. 二進制
      logo.png
  7. 0 0
      sheet.go
  8. 二進制
      test/images/excel.gif
  9. 二進制
      test/images/excel.jpg
  10. 二進制
      test/images/excel.png

+ 11 - 9
README.md

@@ -1,13 +1,15 @@
-![Excelize](./excelize.png "Excelize")
+<p align="center"><img width="650" src="./excelize.png" alt="Excelize logo"></p>
 
 
-# Excelize
+<p align="center">
+    <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>
+    <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>
+    <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>
+    <a href="https://godoc.org/github.com/360EntSecGroup-Skylar/excelize"><img src="https://godoc.org/github.com/360EntSecGroup-Skylar/excelize?status.svg" alt="GoDoc"></a>
+    <a href="https://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/license-bsd-orange.svg" alt="Licenses"></a>
+    <a href="https://www.paypal.me/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
+</p>
 
 
-[![Build Status](https://travis-ci.org/360EntSecGroup-Skylar/excelize.svg?branch=master)](https://travis-ci.org/360EntSecGroup-Skylar/excelize)
-[![Code Coverage](https://codecov.io/gh/360EntSecGroup-Skylar/excelize/branch/master/graph/badge.svg)](https://codecov.io/gh/360EntSecGroup-Skylar/excelize)
-[![Go Report Card](https://goreportcard.com/badge/github.com/360EntSecGroup-Skylar/excelize)](https://goreportcard.com/report/github.com/360EntSecGroup-Skylar/excelize)
-[![GoDoc](https://godoc.org/github.com/360EntSecGroup-Skylar/excelize?status.svg)](https://godoc.org/github.com/360EntSecGroup-Skylar/excelize)
-[![Licenses](https://img.shields.io/badge/license-bsd-orange.svg)](https://opensource.org/licenses/BSD-3-Clause)
-[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/xuri)
+# Excelize
 
 
 ## Introduction
 ## Introduction
 
 
@@ -88,7 +90,7 @@ func main() {
 
 
 With Excelize chart generation and management is as easy as a few lines of code. You can build charts based off data in your worksheet or generate charts without any data in your worksheet at all.
 With Excelize chart generation and management is as easy as a few lines of code. You can build charts based off data in your worksheet or generate charts without any data in your worksheet at all.
 
 
-![Excelize](./test/images/chart.png "Excelize")
+<p align="center"><img width="650" src="./test/images/chart.png" alt="Excelize"></p>
 
 
 ```go
 ```go
 package main
 package main

+ 11 - 9
README_zh.md

@@ -1,13 +1,15 @@
-![Excelize](./excelize.png "Excelize")
+<p align="center"><img width="650" src="./excelize.png" alt="Excelize logo"></p>
 
 
-# Excelize
+<p align="center">
+    <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>
+    <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>
+    <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>
+    <a href="https://godoc.org/github.com/360EntSecGroup-Skylar/excelize"><img src="https://godoc.org/github.com/360EntSecGroup-Skylar/excelize?status.svg" alt="GoDoc"></a>
+    <a href="https://opensource.org/licenses/BSD-3-Clause"><img src="https://img.shields.io/badge/license-bsd-orange.svg" alt="Licenses"></a>
+    <a href="https://www.paypal.me/xuri"><img src="https://img.shields.io/badge/Donate-PayPal-green.svg" alt="Donate"></a>
+</p>
 
 
-[![Build Status](https://travis-ci.org/360EntSecGroup-Skylar/excelize.svg?branch=master)](https://travis-ci.org/360EntSecGroup-Skylar/excelize)
-[![Code Coverage](https://codecov.io/gh/360EntSecGroup-Skylar/excelize/branch/master/graph/badge.svg)](https://codecov.io/gh/360EntSecGroup-Skylar/excelize)
-[![Go Report Card](https://goreportcard.com/badge/github.com/360EntSecGroup-Skylar/excelize)](https://goreportcard.com/report/github.com/360EntSecGroup-Skylar/excelize)
-[![GoDoc](https://godoc.org/github.com/360EntSecGroup-Skylar/excelize?status.svg)](https://godoc.org/github.com/360EntSecGroup-Skylar/excelize)
-[![Licenses](https://img.shields.io/badge/license-bsd-orange.svg)](https://opensource.org/licenses/BSD-3-Clause)
-[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/xuri)
+# Excelize
 
 
 ## 简介
 ## 简介
 
 
@@ -88,7 +90,7 @@ func main() {
 
 
 使用 Excelize 生成图表十分简单,仅需几行代码。您可以根据工作表中的已有数据构建图表,或向工作表中添加数据并创建图表。
 使用 Excelize 生成图表十分简单,仅需几行代码。您可以根据工作表中的已有数据构建图表,或向工作表中添加数据并创建图表。
 
 
-![Excelize](./test/images/chart.png "Excelize")
+<p align="center"><img width="650" src="./test/images/chart.png" alt="Excelize"></p>
 
 
 ```go
 ```go
 package main
 package main

+ 1 - 1
excelize.go

@@ -1,7 +1,7 @@
 // Copyright 2016 - 2018 The excelize Authors. All rights reserved. Use of
 // Copyright 2016 - 2018 The excelize Authors. All rights reserved. Use of
 // this source code is governed by a BSD-style license that can be found in
 // this source code is governed by a BSD-style license that can be found in
 // the LICENSE file.
 // the LICENSE file.
-//
+
 // Package excelize providing a set of functions that allow you to write to
 // 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
 // and read from XLSX files. Support reads and writes XLSX file generated by
 // Microsoft Excel™ 2007 and later. Support save file without losing original
 // Microsoft Excel™ 2007 and later. Support save file without losing original

二進制
excelize.png


+ 3 - 3
excelize_test.go

@@ -21,9 +21,9 @@ func TestOpenFile(t *testing.T) {
 		t.Error(err)
 		t.Error(err)
 	}
 	}
 	// Test get all the rows in a not exists worksheet.
 	// Test get all the rows in a not exists worksheet.
-	rows := xlsx.GetRows("Sheet4")
+	xlsx.GetRows("Sheet4")
 	// Test get all the rows in a worksheet.
 	// Test get all the rows in a worksheet.
-	rows = xlsx.GetRows("Sheet2")
+	rows := xlsx.GetRows("Sheet2")
 	for _, row := range rows {
 	for _, row := range rows {
 		for _, cell := range row {
 		for _, cell := range row {
 			t.Log(cell, "\t")
 			t.Log(cell, "\t")
@@ -518,7 +518,7 @@ func TestSetCellStyleCurrencyNumberFormat(t *testing.T) {
 	xlsx.SetCellValue("Sheet1", "A1", 42920.5)
 	xlsx.SetCellValue("Sheet1", "A1", 42920.5)
 	xlsx.SetCellValue("Sheet1", "A2", 42920.5)
 	xlsx.SetCellValue("Sheet1", "A2", 42920.5)
 
 
-	style, err = xlsx.NewStyle(`{"number_format": 26, "lang": "zh-tw"}`)
+	_, err = xlsx.NewStyle(`{"number_format": 26, "lang": "zh-tw"}`)
 	if err != nil {
 	if err != nil {
 		t.Log(err)
 		t.Log(err)
 	}
 	}

二進制
logo.png


+ 0 - 0
sheet.go


二進制
test/images/excel.gif


二進制
test/images/excel.jpg


二進制
test/images/excel.png