diff options
author | xuri <xuri.me@gmail.com> | 2020-05-21 22:57:58 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-05-21 22:57:58 +0800 |
commit | 2efc7107ff30dc7f1e1a798082616ee488f99489 (patch) | |
tree | 80ea9e1e9f9246369685acabd0e5dac8271e7d97 /lib.go | |
parent | 98221a332ff9c37c9b20c44e9efdbe4c22a5cf5c (diff) |
- transform the range to the matrix on the first arg of the formula
- typo fix
- reset cell with and height when insert picture into merged cell with autofit
Diffstat (limited to 'lib.go')
-rw-r--r-- | lib.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ import ( "unsafe" ) -// ReadZipReader can be used to read an XLSX in memory without touching the +// ReadZipReader can be used to read the spreadsheet in memory without touching the // filesystem. func ReadZipReader(r *zip.Reader) (map[string][]byte, int, error) { fileList := make(map[string][]byte, len(r.File)) @@ -160,8 +160,8 @@ func ColumnNumberToName(num int) (string, error) { // // Example: // -// CellCoordinates("A1") // returns 1, 1, nil -// CellCoordinates("Z3") // returns 26, 3, nil +// excelize.CellNameToCoordinates("A1") // returns 1, 1, nil +// excelize.CellNameToCoordinates("Z3") // returns 26, 3, nil // func CellNameToCoordinates(cell string) (int, int, error) { const msg = "cannot convert cell %q to coordinates: %v" @@ -184,7 +184,7 @@ func CellNameToCoordinates(cell string) (int, int, error) { // // Example: // -// CoordinatesToCellName(1, 1) // returns "A1", nil +// excelize.CoordinatesToCellName(1, 1) // returns "A1", nil // func CoordinatesToCellName(col, row int) (string, error) { if col < 1 || row < 1 { |