From 305ed62655a54888cf90888483ac66474264f8f7 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 18 Oct 2016 09:43:08 +0800 Subject: [PATCH] Revert "Update README.md" --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 298772b..f1a57cd 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,6 @@ package main import ( "fmt" - "os" - "github.com/Luxurioust/excelize" ) @@ -39,7 +37,6 @@ func main() { xlsx, err := excelize.CreateFile() if err != nil { fmt.Println(err) - os.Exit(1) } xlsx.NewSheet(2, "Sheet2") xlsx.NewSheet(3, "Sheet3") @@ -48,7 +45,6 @@ func main() { err = xlsx.WriteTo("/home/Workbook.xlsx") if err != nil { fmt.Println(err) - os.Exit(1) } } ``` @@ -69,7 +65,6 @@ func main() { xlsx, err := excelize.OpenFile("/home/Workbook.xlsx") if err != nil { fmt.Println(err) - os.Exit(1) } xlsx.SetCellInt("Sheet2", "B2", 100) xlsx.SetCellStr("Sheet2", "C11", "Hello") @@ -80,7 +75,6 @@ func main() { err = xlsx.Save() if err != nil { fmt.Println(err) - os.Exit(1) } } ``` @@ -99,7 +93,6 @@ func main() { xlsx, err := excelize.OpenFile("/home/Workbook.xlsx") if err != nil { fmt.Println(err) - os.Exit(1) } cell := xlsx.GetCellValue("Sheet2", "D11") fmt.Println(cell) @@ -116,4 +109,4 @@ 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). +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