提交 0e61ae7e 编写于 作者: xurime's avatar xurime

1) Update readme file credits and go report badge added; 2) Remove use less...

1) Update readme file credits and go report badge added; 2) Remove use less function; 3) Update test file.
上级 3c4ad28d
Copyright (c) 2016, Ri Xu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of [project] nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
......@@ -4,6 +4,7 @@
[![Build Status](https://travis-ci.org/Luxurioust/excelize.svg?branch=master)](https://travis-ci.org/Luxurioust/excelize)
[![Code Coverage](https://codecov.io/gh/Luxurioust/excelize/branch/master/graph/badge.svg)](https://codecov.io/gh/Luxurioust/excelize)
[![Go Report Card](https://goreportcard.com/badge/github.com/Luxurioust/excelize)](https://goreportcard.com/report/github.com/Luxurioust/excelize)
[![GoDoc](https://godoc.org/github.com/Luxurioust/excelize?status.svg)](https://godoc.org/github.com/Luxurioust/excelize)
[![Licenses](https://img.shields.io/badge/license-bsd-orange.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Join the chat at https://gitter.im/xuri-excelize/Lobby](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/xuri-excelize/Lobby)
......@@ -79,6 +80,10 @@ func main() {
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
### Credits
Some struct of XML originally by [tealeg/xlsx](https://github.com/tealeg/xlsx).
## Licenses
This program is under the terms of the BSD 3-Clause License. See [https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause).
\ No newline at end of file
......@@ -41,6 +41,7 @@ func TestExcelize(t *testing.T) {
if err != nil {
t.Error(err)
}
GetCellValue(file, "Sheet2", "a-1")
GetCellValue(file, "Sheet2", "a5")
GetCellValue(file, "Sheet2", "D11")
GetCellValue(file, "Sheet2", "D12")
......
......@@ -6,7 +6,6 @@ import (
"io"
"log"
"math"
"os"
"regexp"
"strconv"
"strings"
......@@ -100,15 +99,6 @@ func titleToNumber(s string) int {
return sum - 1
}
// Check the file exists
func pathExist(_path string) bool {
_, err := os.Stat(_path)
if err != nil && os.IsNotExist(err) {
return false
}
return true
}
// Split Excel sheet column title to string and integer, return XAxis
func getColIndex(axis string) string {
r, err := regexp.Compile(`[^\D]`)
......
// Some code of this file reference tealeg/xlsx
package excelize
import (
......
// Some code of this file reference tealeg/xlsx
package excelize
import (
......
// Some code of this file reference tealeg/xlsx
package excelize
import (
......
// Some code of this file reference tealeg/xlsx
package excelize
import (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册